Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR requires: joomlatools/joomlatools-framework#352
This PR adds support for per page Joomla template configuration. It adds a
template
config option to the process in the frontmatter.Template config options
name
: Defines the name of the template to useconfig
: Defines an associative array of template config settingsmodules
: Defines a list of modules to include, either by name or by idNote: when specifying a different template through
name
no default template config options will be loaded. If no template name is specified the active template config options will be loaded the theconfig
defines the overrides for the active template.Including modules
By default modules are limited to the list provided. This allows to ensure no other modules then those listed can be present on the page. If the list is empty no modules will be included in the page.
Example:
modules: ["Main Menu", 17]
Excluding modules
If the module name or module id is prepended with a '-' the module will be excluded instead. This allows any module expect the ones listed to be present on the page.
Example:
modules: ["-Main Menu", -17]