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

Generate default frontend_addon_name from title #110

Open
Fosten opened this issue Nov 20, 2024 · 1 comment
Open

Generate default frontend_addon_name from title #110

Fosten opened this issue Nov 20, 2024 · 1 comment

Comments

@Fosten
Copy link

Fosten commented Nov 20, 2024

“volto-addon” is provided as the default frontend_addon_name

"frontend_addon_name": "volto-addon",

Whereas it could be generated programmatically like so

"frontend_addon_name": "{{ cookiecutter.title | slugify }}",

Similar to how it is done in a cookieplone project

"project_slug": "{{ cookiecutter.title | slugify }}",

@davisagli
Copy link
Member

@Fosten Good catch, this is currently handled correctly when the frontend_addon template is used as part of a project, but not when it is used as a standalone template. Would you be willing to submit a PR with your proposed change?

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

2 participants