In the new templating we differ between tha map representation of a node 
(ContentMap) and a plain node.

If it is a map then the dot notation for properties works (content.title, 
content.child.prop, ...). All objects provided to the template are such maps 
and any navigation will return maps too.

If it is a node then you can call the JCR methods like node.parent, node.level, 
...

A template model will normally return maps to make the template code more 
readable.

Btw: most of our template functions can take maps and nodes

Please note that the ContentMap is just a wrapper of the node. The biggest 
benefit of this that it is transparent and working equally fine for JSP and 
FreeMarker

-- 
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]>
----------------------------------------------------------------

Reply via email to