hi Mario, also looking at your code then this should do what you want: [code] <div ng-controller="someController"> [#assign rootPageNode = cmsfn.root(content, "mgnl:page")!content ] <div style="display: none">{{myVar='${rootPageNode.@name}'}}</div> </div> [/code]
just remember if this code is execute on root page (root node), then cmsfn.root returns null, so then you have to use 'content' instead and .@name (same as .@id, .@depth and .@path) is property which every node has. other that that you can use .title or anything your node related but then you have to check first if with ?has_content Tomas -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=c2c6fa91-516f-485b-aaaa-e560cb343361 ---------------------------------------------------------------- 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: <user-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------