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

taglib: cms:setNode should set a ContentWrapper implementing a Map

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 3.5.3
    • 3.5.2
    • taglibs
    • None

    Description

      This allows to use the variable where ever you need a content node (for passing to a tag for example). The map should support all properties of the Content object. This allows expressions like:

      <cms:out nodeDataName="link" var="uuid" />

      <cms:setNode var="paragraph"/>

      <cms:setNode uuid="${uuid}" var="other"/>
      <cms:setNode uuid="${paragraph.link}" var="other2"/>

      -${other.title}<br/>
      -${other.name}<br/>
      -${other.metaData.modificationDate}<br/>
      -${other.uuid}<br/>

      <cms:out contentNode="${other}" nodeDataName="theField" />

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              pbaerfuss Philipp Bärfuss
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD