Hi,
i recently upgraded to magnolia 4.5
now i have a template which (still) outputs html encoded values. i have fixed
most of these issues by using cmsfn.decode(), however i am not sure how to
solve it in the given template:
[code]
[#if model.navigation.showVerticalNavigation]
[#assign navigation = model.navigation.verticalNavigation]
<div id="nav">
<div id="nav-box">
<h6>${i18n['structural.subnavigation']}</h6>
[@renderNavigation navigation=navigation /]
</div><!-- end nav-box -->
</div> <!-- end nav -->
[/#if]
[#macro renderNavigation navigation]
[#if navigation.items?has_content]
<ul>
[#list navigation.items as item]
<li${cssClass}>
[#if item.selected]
[#assign title]
<span><em>${i18n['nav.selected']}</em>${item.navigationTitle}</span>
[/#assign]
[#if content.@uuid != item.content.@uuid]
<a href="${item.href}">${title}</a>
[#else]
<strong>${title}</strong>
[/#if]
[#else]
<!-- this line --> <a href="${item.href}">${item.navigationTitle}</a>
[/#if]
[#if item.open]
[@renderNavigation navigation=item /]
[/#if]
</li>
[/#list]
</ul>
[/#if]
[/#macro]
[/code]
so ${item.navigationTitle} does output to
" <strong>AAA</strong>" (i know, its bad - but customer wants
to keep it like that ...)
but, the value of navigationTitle should rather output to an decoded version of
the above.
cant use ${cmsfn.decode(item).navigationTitle}
what do i need to pass with the method as 'contentMap' parameter?
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=e3c51123-bd40-43cc-92af-e8074cf90c6e
----------------------------------------------------------------
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]>
----------------------------------------------------------------