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

Templating: Allow to omit the area node for structural areas by configuration only.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5.6
    • Fix Version/s: 5.2.4
    • Component/s: templating
    • Release notes required:
      Yes
    • Magnolia Release:
      5.2.4

      Description

      Sometimes its not needed to have an area node. This is especially the case if the area is of type noComponents.

      Currently this is achieved by passing the current node (page for instance) to the area tag. Following an example of the main.ftl of the STK:

          [@cms.area name="branding" content=content/]
      

      We should introduce the attribute (on the tag and the definition) to achieve the same.

      I suggest to add areaNode with default value true.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mdivilek Milan Divilek
                Reporter:
                pbaerfuss Philipp Bärfuss
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: