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 implements the ability to decorate an existing Joomla menu item or page. The Joomla rendering cycle is intercepted after the active component has been dispatched and the returned by the component is then injected in a page to be decorated.
Setup
To decorate an existing menu item or page create a page with the same name as the menu item alias, or the page route.
Example:
http://mysite.com/path/to/menu
=>/joomlatools-pages/pages/path/to/menu
In the page place a
<ktml:content>
which will acted as the placeholder for output generated by the component and then place mark around it. The decorated result will be injected back into Joomla after processing.Frontmatter
This PR adds and additional process modifier called
decorate
which specifies the decoration level. The decoration level specifies how deep the decoration takes effect. Possible values:Notes
For example:
http://mysite/[articles]/[uncategorised/myarticle]
articles
is a menu item that links to the Joomla content component using an 'List All Categories' menu type.uncategorised/myarticle
is a page generated by the content component. It shows the article with alias myarticle that is part of theuncategorised
category.