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

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

XMLWordPrintable

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

      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" />

        Acceptance criteria

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

                Created:
                Updated:
                Resolved: