studioespresso / craft3-seeder

Seeder is the easiest way to quickly create placeholder content while you're building out a website. Create your sections & fields and then let Seeder make entries for you.
https://plugins.craftcms.com/seeder
MIT License
28 stars 3 forks source link

Randomize published date #20

Open lesaff opened 4 years ago

lesaff commented 4 years ago

Is there a way to randomize published date entries when seeding content? If not, I think it would be a good addition to this plugin.

Thx Rudy

janhenckens commented 4 years ago

Interesting idea Rudy! Preferably the random date would be in the past right?

jan-dh commented 4 years ago

Maybe you could pass a range as option, or something like past, future, both or a custom date range. Future dates are sometimes handy to test out some functionality.

janhenckens commented 4 years ago

Defining the range in a config file sounds like a good idea @jan-dh!