Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joshuapease opened this issue Jun 21, 2021 · 0 comments
Open

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

joshuapease opened this issue Jun 21, 2021 · 0 comments

Comments

@joshuapease
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant