Hello,
I have a component that shows nav links, and I went to apply an "menu-active"
class when the page title equals a "linkAlias" value that is defined at the
component level.
Here is the code:
[code][#if page.title == content.linkAlias]
[#assign linkTypeClass = "menu-active"]
[#else]
[#assign linkTypeClass = ""]
[/#if]
<li class="leftNavLink opacity60 ${linkTypeClass}"><a
href="${contextPath}${content.linkURL!}">${content.linkText!"Text
Missing"}</a></li>[/code]
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=2c4e414e-a181-489d-ba8e-9e2cc938940a
----------------------------------------------------------------
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]>
----------------------------------------------------------------