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

    I'm using Wayfinder to create navigation in Modx(evo) and below is the code which is working fine except i'm not able to hide more than one navigation item:

    [[ Wayfinder? &startId=0
    &parentRowTpl=Firstlevel-NavItem &outerTpl=Outer-Nav &innerTpl=Firstlevel-Nav &rowTpl=Inner-Row
    &excludeDocs='1,136' ]]

    &excludeDocs, it only works for first number specified. (In above case only 1 navigation item is hidden, nav(136) is visible.

    Any thoughts on this?
    • Try it like this. Use backticks `` not single-quotes.
      [[ Wayfinder? &startId=`0` &parentRowTpl=`Firstlevel-NavItem` &outerTpl=`Outer-Nav` &innerTpl=`Firstlevel-Nav` &rowTpl=`Inner-Row` &excludeDocs=`1,136`]]
        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
        • 45408
        • 5 Posts
        Awesome! thanks.
          • 44286
          • 1 Posts
          &excludeDocs=`1,136`

          Not working in modx-1.0.13....
          • Works for me...
            	[[Wayfinder? 
            	    &startId=`0` 
            	    &hereClass=`current` 
            	    &outerTpl=`wf.outerTpl`
            	    &excludeDocs=`3,4`
                ]]

            But I'm working with a version downloaded from github last week. It may be different than the 1.0.13 release.
              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
              • 9995
              • 1,613 Posts
              exclude = 1 and (configuration) start site = 1 would conflict?

              umm nevermind smiley [ed. note: fourroses666 last edited this post 9 years, 11 months ago.]
                Evolution user, I like the back-end speed and simplicity smiley