|
Feature request:
Existing subtemplating mechanism is a good feature, but it is limited because only works when using different extensions
But there are numerous cases, when for the same extension (that is the same channel) differenzt tempaltes should be used, i.e.:
- Make a HTML defaul view and a HTML print preview
- Implement paging of content contained in one page
- Render images contained in the page in differenz views
The attached patch implements this feature:
- Implements enhanced parsing of request uri
- Adds a new optional Subtemplate parameter "selector" supporting regular expressions
- Takes caching into account
- And adds a new documentation page for the whole subtemplating mechanism (partly based on the existing wiki page).
The news subtemplating selector feature is complete optional and backwards compatible to existing magnolia applications (as far as we testet...)
I hope this new feature finds positive feedback and its way in one of the next magnolia releases.
|