On 24 Feb 2011, at 18:16, Will Scheidegger wrote:
>
> Dear Magnolians
>
> We need to add a list of "sponsor" (icon, link, name) on each page. It pretty
> much boils down to the same functionality the meta navigation offers. But the
> meta navigation uses special methods the model provides.
>
> Now of course I could extend STKTemplateModel and copy the meta navigation
> methods. But can I do the same without modifying the model?
>
${mgnl.inherit(page)} ?
> Whatever I have tried so far has failed miserably. I've done this in JSP
> templates, but somehow Freemarker is giving me a hard time... for instance:
> How can I get the ancestor node at level 1? ${content.getAncestor(1)} does
> not work because of the Magnolia Freemarker "features"...
${model.siteRoot} ? (there is no guarantee that your "site root" is at level 1)
HTH,
-g
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------