Skip to content

Instantly share code, notes, and snippets.

@cfalzone
Created February 9, 2015 12:47
Show Gist options
  • Save cfalzone/a64d960184dca87347bb to your computer and use it in GitHub Desktop.
Save cfalzone/a64d960184dca87347bb to your computer and use it in GitHub Desktop.
dotCMS Multilingual Navigation
#set($list = $navtool.getNav("/"))
#foreach($n in $list)
<li class="divider"></li>
#set($children = $n.children)
#if($children && $children.size() > 0)
<li class="has-dropdown #if($n.active) active #end">
<a href="${n.href}">$text.get( ${n.title} )</a>
<ul class="dropdown">
#foreach($ch in $children)
<li #if($ch.active) class="active" #end><a href='${ch.href}'>$text.get( ${ch.title} )</a></li>
#end
</ul>
</li>
#else
<li class="#if($n.active) active #end"><a href='${n.href}'>$text.get( ${n.title} )</a></li>
#end
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment