We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28743
    • 10 Posts
    I’ve been scratching my head over this and I’ve reached a bit of a brick wall...

    I’m building a menu that shows children when the user is in the section that contains them.

    This works fine and is pretty simple to get working.

    In one section though, I don’t want the children to show in the menu.

    Is there a way of disabling children for a specific section? I don’t want to use excludedocs as the section I want to change is the blog and it will be added to all the time.

    Any suggestions?

    Cheers,

    Chris
      • 26016
      • 561 Posts
      Short of simply marking those docs to not display in the menu, I can think of a couple ways.

      You could have an excludeDoc parameter in your Wayfinder and have it populated by a TV. Usually this TV would be empty, thus not excluding anything. But for that one "root" doc you could stick in the docs to exclude.

      You could also set up PHx to this with your Wayfinder call, responding to certain "if" conditions, but that’s a bigger deal.

      Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 32699 ☆ A M B ☆
        • 427 Posts
        set the depth with &level=`1`
          Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

          Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com