|
Date: 2/20/2008 2:53 pm · Subject: Dropdown Menu · Rating: 2
I am trying to build a css dropdown menu. Getting close but no cigar. here is my nav settings: Relative to root +2 self siblings decendents +3 The folloing template is not working: <tmpl_if session.var.adminOn> <tmpl_var controls> </tmpl_if>
<div id="menu"> <ul id="nav" class="eight"> <li id="nav_home" class="first"><a href="/home">Home</a></li>
<tmpl_loop page_loop> <tmpl_if page.isViewable> <li><a <tmpl_if page.newWindow>target="_blank"</tmpl_if> href="<tmpl_var page.url>"><tmpl_var page.menuTitle></a>
<tmpl_if page.hasChild> <ul> <tmpl_loop page_loop> <tmpl_if page.isChild> <li><a <tmpl_if page.newWindow>target="_blank"</tmpl_if> href="<tmpl_var page.url>"><tmpl_var page.menuTitle></a> </li> </tmpl_if> </tmpl_loop> </ul> </tmpl_if> </li> </tmpl_if> </tmpl_loop> </ul> </div> the html output should be this: <ul> <li>link <ul> <li>sublink</li> </ul> </li> </ul> It seems as though the nested loop is not working. Thanks
--- (Edited on 2/20/2008 2:53 pm [GMT-0600] by ministrycrm) ---
|