The util class you might have searched for: info.magnolia.module.data.util.DataUtil

Right...found that but nothing to easily use it in a template. STKUtil has a getReferencedContent() method for a 1:1 relationship. Does it make sense to add getReferencedContentList() ? If so I will submit the patch.

Hm, but this method should be added to the DataUtil but not into the STKUtil. But the following should work too:

[#assign hm = ctx.getHierarchyManger('data')]

[#list content.name?children as valueNode]
  [#assign referencedNode = hm.getContentByUUID(valueNode.name)]
  referenced node: ${referencedno...@path}
[/#list]

Philipp
Magnolia International Ltd.

---------------------------------------
 Meet us at the Magnolia Conference
 http://www.magnolia-cms.com/conference
---------------------------------------

Magnolia®  - Simple Open Source Content Management


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to