Uploaded image for project: 'Magnolia Templating Essentials'
  1. Magnolia Templating Essentials
  2. MTE-40

Util to retrieve the TemplateDefinition (page, area, component) for a specific node

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Workaround exists
    • Neutral
    • None
    • 0.5
    • ftl-templates
    • None

    Description

      Hi Mgnls,

      for building the navigation I searched for a util function that returns the TemplateDefinition for a specific node, I couldn't find one. Example:

      in the header I have a list of nodes from the content area to build up the header navigation of a one-pager.

      The nodes are of type mgnl:area.

      templatingFunctions.children(content, "mgnl:area")

      It would be nice to have something like:

      NodeUtil.getTemplateDefinition(node);

      that returns the page/area/component definition.

      Sigurd

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              sigurd.rolfes Sigurd Rolfes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD