Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-528

Enhance subtemplating to selected templates based on extension and/or selectors

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Minor
    • 3.0 RC3
    • 2.1 Final
    • templating
    • None

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                scharles Sameer Charles
                sseifert Stefan Seifert
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: