vigetlabs / craft-viget-base

http://code.viget.com/craft-viget-base/
7 stars 3 forks source link

[CLI Generator] Create Sections & Entrytypes via the CLI #38

Open joshuapease opened 3 years ago

joshuapease commented 3 years ago

Calling a command like this...

craft viget-base/generate section resources --types="caseStudy, webinar, glossary"

Will create a new section in the Craft admin with corresponding entry types.

The appropriate templates will also be created in templates/_elements/

If there are multiple entry types, the pattern will be templates/_elements/sectionName/index.html with corresponding files for each entry type.