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

    I am using Modx for a few months and i love the creative freedom it gives you as a web designer. But that also gives me some headaches because i have designed a website that contains a separate submenu. Which i can't get to work.

    This is what i have in mind:
    The website has a menu wich display al menu items and the submenu items. When you are on a page wether it is a parent or a child i want a submenu to display that contains the parent as the title and the children as links.

    So basicly i want a separate submenu that always display the correct parent as menu title and children as links.

    Here is the code so far:

    nav chunk:
        	<nav id="nav">
            	[[Wayfinder?
            	&startId=`[[UltimateParent? &topLevel=`1`]]`
            	&level=`2`
            	&outerTpl=`nav_outer`
            	&rowTpl=`nav_outer_row`
            	&displayStart=`[[UltimateParent]]`]]
            </nav>
    


    outer template:
            	<ul class="spc_menu rnd_brdr shadow_rnd">
            		<h1 class="red Century_Gothic vet">Name menu</h1>
                		[[+wf.wrapper]]
            	</ul>
    


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


    Please help.

    Regards Arjan
      • 42883
      • 2 Posts
      Found it!
        • 22427
        • 793 Posts
        Why don't you tell us what was wrong?

        &displayStart is a Boolean parameter that can only have the values 0 (default) or 1.