Answering my own question... something like this below did the job. But I don't 
think it would win a price in a code beauty contest...

[#assign cms=JspTaglibs["cms-taglib"]]

<ul id="icon_links">
  [#assign iconLinksModel = stk.inheritContent(content, "iconLinks") /]
  [#if iconLinksModel.exists]
    [@cms.contentNodeIterator contentNode=iconLinksModel.content!]
        [@cms.includeTemplate /]
    [/@cms.contentNodeIterator]
  [/#if]
  [#if mgnl.editMode && content.@level == 1]
      <li class="icon_link">[@cms.newBar contentNodeCollectionName="iconLinks" 
newLabel="Neues Icon-Link" 
paragraph="schweizmobilcardExternalImageLink,schweizmobilcardInternalImageLink" 
/]</li>
  [/#if]
</ul>

On 24.02.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?
> 
> 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"...
> 
> Thanks for any pointers!
> 
> -will
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 



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