I am using [#assign cm = cmsfn.asContentMap(item)] and then ${cm.title}, but I
am not sure if this is the best solution
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Im Auftrag von Mario Martínez Campos (via Magnolia Forums)
Gesendet: Donnerstag, 18. Oktober 2012 17:04
An: Magnolia User List
Betreff: [magnolia-user] Get Node title
I quite new in magnolia cms. I am trying to get the title of a node with this:
[code][#list model.sections as item]
<li><a href="">${item.title!'section'}</a></li>
[/#list][/code]
where model.sections return a Collection<Node>.
I have seen some examples using Content instead of Node, but I am using version
4.5.4 and Content is deprecated. Somebody can help me?
Thanks!
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=6dbc20bf-c628-464d-98b8-f9d02e23e8e7
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------