We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37042
    • 384 Posts
    Hi all
    Apologies to flag this as urgent but I have a project going live this weekend and this is a show stopper (for my client)

    Basically, Wayfinder Drop Down Menu is working but pulling in every Level 1 Parent (and their children).
    I'd like my Top Navigation Bar to display only specific Level 1 Resources (and their children).

    Normally I would use the &includeDocs= paremeter

    [[Wayfinder? &startId=`0` &level=`3` &includeDocs=`1,2,245,258,270,20,40,181,28` &config=`cssplay-dropdown.config` &rowClass=`topnav`]]


    but on a drop down menu this stops the Level 2 and 3 children showing. Effectively, I end up with a Top menu with no drop down :-(

    I know I could effectively solve this by using the &excludeDocs= parameter but it's not really what I want.

    Any help gratefully accepted asap.
    Willing to pay for a successful solution (Pay Pal, Amazon Vouchers, contribution to MODX LLC) etc etc
      ...
      • 22427
      • 793 Posts
      Without knowing your cssplay-dropdown.config and topnav it is hardly possible to give advice.
        • 37042
        • 384 Posts
        Config File (cssplay-dropdown.config.php)
        <?php
        $level = 3;
        
        $parentClass = 'hide';
        $outerClass = 'menu';
        
        $outerTpl = '@CODE:<div[[+wf.classes]]>
        	<ul>
        		[[+wf.wrapper]]
        	</ul>
        </div>';
        
        $rowTpl = '@CODE:<li[[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>';
        
        $parentRowTpl = '@CODE:<li><a [[+wf.classes]] href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>
            <!--[if lte IE 6]>
            <a class="sub" href="[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]
            <table><tr><td>
            <![endif]-->
            [[+wf.wrapper]]
            <!--[if lte IE 6]>
        	</td></tr></table>
            </a>
            <![endif]-->
        </li>';
        
        $cssTpl = '@CODE:<link rel="stylesheet" media="all" type="text/css" href="assets/components/wayfinder/examples/cssplay/dropdown.css" />
        <!--[if lte IE 6]>
        <link rel="stylesheet" media="all" type="text/css" href="assets/components/wayfinder/examples/cssplay/dropdown_ie.css" />
        <![endif]-->';


        CSS
        Attached


          ...
          • 22427
          • 793 Posts
          In &rowClass=`topnav` the topnav of course has to be a class, not an id. But in your CSS you refer to #topnav, not to .topnav - ??