We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8489
    • 90 Posts
    Is it possible to exclude weblinks in Wayfinder?

    Thanks
      • 18463
      • 121 Posts
      Martijn van Turnhout Reply #2, 15 years, 4 months ago
      Can’t that be done with &excludeDocs?
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Or set the weblinks to not show in menu?
          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
          • 8489
          • 90 Posts
          Quote from: Martijn at May 20, 2011, 03:53 AM

          Can’t that be done with &excludeDocs?

          I really need an automatic way of excluding them I have 100+ of weblinks smiley
            • 8489
            • 90 Posts
            Quote from: sottwell at May 20, 2011, 03:54 AM

            Or set the weblinks to not show in menu?

            I have 100+ of weblinks I need some automatic way to exclude them.
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Evo or Revo?

              You could use the &webLinkClass parameter, then use a display:none; in the CSS for those elements. You could even go a step farther and use some javascript to actually remove the weblink’s li container instead of just hiding it.
                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
                • 36442
                • 97 Posts
                In Revo you can use where parameter to filter out weblinks:
                &where=`{"content_type:!=":"modWebLink"}`

                In Evolution you might tweak the wayfinder class, I think.
                  • 10449
                  • 956 Posts
                  If all weblinks are in the same folder, use the Doc Manager module and change the "show in menu" attribute. If they’re scattered all over, that’s less efficient, of course...
                    • 8489
                    • 90 Posts
                    Quote from: Warsteiner at May 20, 2011, 05:28 AM

                    In Revo you can use where parameter to filter out weblinks:
                    &where=`{"content_type:!=":"modWebLink"}`

                    In Evolution you might tweak the wayfinder class, I think.

                    Thanks Warsteiner,

                    I changed the Wayfinder with the code but it is not filtering out the weblinks.

                    [[Wayfinder? &startId=`0` &ignoreHidden=`true` &where=`{"content_type:!=":"modWebLink"}`]]
                      • 8489
                      • 90 Posts
                      Quote from: ganeshXL at May 20, 2011, 05:32 AM

                      If all weblinks are in the same folder, use the Doc Manager module and change the "show in menu" attribute. If they’re scattered all over, that’s less efficient, of course...

                      Thanks GaneshXL,

                      I need them to show on another page besides the sitemap so I can’t use that option.