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

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

      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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD