Skip to content

Feature request: Add theme templates #530

@kaidesu

Description

@kaidesu

Is your feature request related to a problem? Please describe.

When generating a new theme through the make:theme Artisan command, it would be helpful to have the ability to specify a template to use as the base to generate the new theme with.

Templates would technically live alongside themes in the themes directory. What determines a template will be a new template: true value being included in the theme manifest file.

Templates would not be able to be assigned as a sites theme directly. This is because templates would consist of placeholders for the system to replace during generation (e.g. {namespace})

Describe the solution you'd like

When running php artisan make:theme Test, add a new --template="Oxygen" flag to specify which template to use. If not passed, the new theme would use the default minimal template bundled with the CMS.

Feature request checklist

  • This is a single feature (i.e. not a re-write of the entire CMS)
  • The title starts with "Feature request: " and is followed by a clear feature name (Ex: Feature request: add konami code to control panel)
  • I have searched for existing issues and to the best of my knowledge this is not a duplicate

Metadata

Metadata

Assignees

Labels

AdditionNew features and functionality not currently present in the platform

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions