[MAGNOLIA-2000] taglib: cms:setNode should set a ContentWrapper implementing a Map Created: 14/Jan/08  Updated: 23/Jan/13  Resolved: 14/Jan/08

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: 3.5.2
Fix Version/s: 3.5.3

Type: Improvement Priority: Major
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

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


Generated at Mon Feb 12 03:32:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.