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

FR: add option to specify siteId #14

Closed jan-dh closed 4 years ago

jan-dh commented 5 years ago

I would like to seed a section for one specific site that is not the main site. At the moment I'm getting an error

The section xxx is not enabled for the site '1'' 

Tried adding something like --site="2" or --siteId="2" but that doesn't seem to work:

Unknown option: --site
janhenckens commented 5 years ago

Good one! I don't think the queries that create elements in the plugin have any siteId set right now. Should be easy enough to add!

janhenckens commented 4 years ago

Hey @jan-dh, totally lost track of this one. Actually added it 3 weeks ago and now it's released as well :)