We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37234
    • 44 Posts
    Here is my wayfinder code which pulls all the links and sublinks within a section:
    [[Wayfinder?&startId=`[[*parent:ne=`0`:then=`[[*parent]]`:else=`[[*id]]`]]`&level=`0`&outerTpl=`rightnavOuter`&parentRowTpl=`rightnavParent`]] 


    My rightnavOuter chunk
    <ul id="envatoLinks" class="dropList" title="Sub Nav" style="display:block;"[[+wf.classes]]>[[+wf.wrapper]]</ul>


    My rightnavParent chunk
    <li[[+wf.classes]]><a href="#" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li> 


    I want wayfinder to output this:
    <ul id="envatoLinks" class="dropList" title="test">
        
    		<li><a href="test.html">test</a></li>
        
    		<li>
            	<a href="#">Test</a>
    			<ul>
                	<li><a href="test.html">Test</a></li>
    				<li><a href="test.html">Test</a></li>
                </ul>
    		</li>
    		
    </ul>  
    


    But its outputting this (its putting in an extra id, class and title into the second ul)
    <ul id="envatoLinks" class="dropList" title="test">
        
    		<li><a href="test.html">test</a></li>
        
    		<li>
            	<a href="#">Test</a>
    			<ul id="envatoLinks" class="dropList" title="test">
                	<li><a href="test.html">Test</a></li>
    				<li><a href="test.html">Test</a></li>
                </ul>
    		</li>
    		
    </ul>  
    


    What am I doing wrong?

    Here is a live example http://www.ksm.fm/misc/nhi/about-us/ (right column nav)

    This question has been answered by ottogal. See the first response.

    [ed. note: helpmejesus last edited this post 14 years, 10 months ago.]
    • discuss.answer
      • 22427
      • 793 Posts
      If there is no explicitly specified &innerTpl parameter in the WF call, it will use the &outerTpl for the sublevel <ul> elements as well. So just define an inner Template like this:
      <ul style="display:block;">[[+wf.classes]]>[[+wf.wrapper]]</ul>

      (By the way, better put the style definition in an external CSS file.)