We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36549
    • 572 Posts
    Hi,

    The code i have for my menu isn’t quite right and i can’t figure out to remedy it.
    The menu i want to achieve is this:
     <div id="nav">
             <ul class="select"><li class="active"><a href="#" title="#">link one</a></li></ul>
    
              <ul class="select"><li><a href="#" title="#">link two<!--[if IE 7]><!--></a>
                   <!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
                   <ul class="sub">
                      <li><a href="#" title="#">Sub link 1</a></li>
                      <li><a href="#" title="#">Sub link 2</a></li>
                      <li><a href="#" title="#">Sub link 3</a></li>
                    </ul>
                    <!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul>
    
               <ul class="select"> <li><a href="#" title="#">link three</a></li></ul>
               <ul class="select"><li><a href="#" title="#">link four</a></li></ul>  
         </div> 


    So i have my chunks as follows:
    Outer
    <div id="nav">
    <ul class="select">
    [+wf.wrapper+]
    </ul>
    </div>


    parentRow
    <ul class="select"><li [+wf.classes+]>
    <a href="[+wf.link+]" title="[+wf.title+]">
    [+wf.linktext+]<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]-->
    [+wf.wrapper+]
    <!--[if lte IE 6]></td></tr></table></a><![endif]--></li></ul>


    row
    <li [+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
    [+wf.wrapper+]</li>


    inner
    <ul class="sub">
    [+wf.wrapper+]
    </ul>


    Wayfinder call:
    [[Wayfinder? &startId=`0` &level=`2` &parentRowTpl=`parentRow` &outerTpl=`outer` &innerTpl=`inner` &rowTpl=`row`]]


    It’s mostly displaying fine but I need a closing </ul> tag on each row. If i take off the <ul> tags from ’outer’ and add them to ’row’ they display on the sub items too, so i need a way to display the sub items with just the <ul class="sub"><li><a href="#"></a></li></ul> and the top level items as <ul class="select"><li><a hre="#"></a></li></ul>.

    Any ideas how i can alter the chunks for this to output the correct code?

    Thanks for any help

    J
      www.9thwave.co.uk
         WEB | DESIGN | PRINT
      • 24935
      • 160 Posts
      It looks like you are working on the ultimate dropdown. Take a look at these examples and see if they help:

      http://www.muddydogpaws.com/notebook/wayfinder-10/example-2.html

      http://www.muddydogpaws.com/development/wayfinder/examples/example-7.html
        • 36549
        • 572 Posts
        thanks that helped. wink
          www.9thwave.co.uk
             WEB | DESIGN | PRINT