We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50960
    • 17 Posts
    I have a sub navigation that is opened on a click (not hover) from the main navigation items. My issue is I need to be able to access those top navigation pages still.

    I need to be able to repeat the parent navigation link item within the sub navigation drop down menu. Any thought on how this can be accomplished using Wayfinder Navigation in Revo. I have listed my example below.

    Home Page
    - Main Nav 1
    - Main Nav 1
    - Sub 1
    - Sub 2
    - Sub 3
    - Main Nav 2
    - Main Nav 2
    - Sub 1
    - Sub 2
    - Sub 3
    - Main Nav 3
    - Main Nav 3
    - Sub 1
    - Sub 2
    - Sub 3
    - Main Nav 4
    - Main Nav 4
    - Sub 1
    - Sub 2
    - Sub 3

    Home Page
    <ul>
    	<li><strong>Main Nav 1</strong>
    <ul>
    			<li><em>Main Nav 1</em></li>
    			<li>Sub 1</li>
    			<li>Sub 2</li>
    			<li>Sub 3</li>
    		</ul>
    	</li>
    	<li><strong>Main Nav 2</strong>
    <ul>
    			<li><em>Main Nav 2</em></li>
    			<li>Sub 1</li>
    			<li>Sub 2</li>
    			<li>Sub 3</li>
    		</ul>
    	</li>
    	<li><strong>Main Nav 3</strong>
    <ul>
    			<li><em>Main Nav 3</em></li>
    			<li>Sub 1</li>
    			<li>Sub 2</li>
    			<li>Sub 3</li>
    		</ul>
    	</li>
    	<li><strong>Main Nav 4</strong>
    <ul>
    			<li><em>Main Nav 4</em></li>
    			<li>Sub 1</li>
    			<li>Sub 2				</li>
    			<li>Sub 3</li>
    		</ul>
    	</li>
    </ul>
    


    Wayfinder:
    [[!Navigation? &startId=`0` &outerTpl=`outerTpl` &innerTpl =`innerTpl` &hereClass=`current_page_item` &firstClass=`` &lastClass =`` ]]
    

    Inner:
    <ul class="inner">
    {NEED PARENT ITEM HERE}
    [[+wf.wrapper]]
    </ul>
    

    Outer:
    <nav id="menu">
    <ul class="menu">
    [[+wf.wrapper]]
    </ul>
    </nav>
    
      Tink!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      See the &displayStart property of Wayfinder. You can use the startItemTpl to begin your menu with the starting UL tag, then the startItem row, ending with the [[+wf.wrappter]] placeholder.
      <ul>
      <li[[+wf.id]][[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a></li>
      [[+wf.wrapper]]


      The outerTpl would start with the [[+wf.wrapper]] placeholder and end with the closing UL tag.
      [[+wf.wrapper]]
      </ul>
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org