We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15987
    • 786 Posts
    You can use the &hideSubMenus parameter to only show the currently active submenu.
      • 36805
      • 354 Posts
      Quote from: kylej at Aug 18, 2006, 12:50 PM

      You can use the &hideSubMenus parameter to only show the currently active submenu.
      That is a very cool feature and it might turn out to be quite useful soon for a site i am developing! It is much better than the solution of picking the tweaked and old ListMenuX Etomite thingy (like a former discussion on the ModX forums about this feature suggested to use for that kind of thing).

      I must admit i consider this snippet to be one of the most important one’s that are currently available because every site needs a decent navigation solution and DropMenu just wasn’t tweakable enough in several cases. So definately keep the good development work up guys! smiley
        • 20765
        • 90 Posts
        myfriendscallmebill Reply #63, 20 years, 1 month ago
        I’m building a website for a client where I’ve set up folders for different types of documents: press releases, white papers, news articles, etc. I’m using Wayfinder to create a "table of contents" listing on the page of each folder, listing the title and introtext for the documents in the folder. It all works very nicely.

        But I’ve been thrown a curve: The client wants the documents in some folders to be viewable only by registered users, but wants all users (registered or not) to be able to see the documents listed in the table of contents pages.

        I’ve set up a user group for registered users, and set each restricted document to be accessible only by those users (MODx makes that part sooo easy smiley, but then they disappear from my Wayfinder-generated tables of contents until a registered user logs in.

        So my question is: Is there a way to make Wayfinder list documents that can’t be opened until the user logs in? (maybe by modifying the code?)
          • 20765
          • 90 Posts
          myfriendscallmebill Reply #64, 20 years, 1 month ago
          A feature request for Wayfinder:

          I’m using Wayfinder to create "tables of contents" listings for sets of documents that are contained in various folders. For some of these listings I wanted to display each document’s title, introtext, and each document’s custom icon (which I’ve referenced, for each document, in a template variable).

          The problem I had is that Wayfinder doesn’t directly let me access TVs or some of the other document fields I wanted.

          The workaround I adopted is to set the anchor’s TITLE attributed to the docid, then in template chunks to embed calls to the GetField snippet, which takes the docic and gets the fields I want. This works fine, but seems like a bit of a hack.

          So my request is for Wayfinder to be able to return any document field or TV that I care to specify in its parameters. Does that make sense?
            • 25663 MODX Staff
            • 12,272 Posts
            So my question is: Is there a way to make Wayfinder list documents that can’t be opened until the user logs in? (maybe by modifying the code?)
            The solution here is MemberCheck + two different calls to Wayfinder with and without links in the templates.

              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 27889
              • 415 Posts
              Hello, thanks for this good snippet.
              I’m trying to display list of document according a tv wich contains keywords.
              Is there a way to display them with wayfinder (I missed that oossibilitie)?
              The hack DropMenu Mindspill do it but is not highly configurable.
              DropMenu Mindspill
              What it does:

              I’ve modified the DropMenu snippet to support the following:

              1. Show all items regardless of whether they’ve been flagged to appear in the menu or not.
              2. Link to a weblink’s URL rather than the weblink itself.
              3. Filter docs via a regular expression on their keywords.
              4. Filter docs via a regular expression on a given template variable.
              5. Join the results using AND, XOR, OR, NOT.
              6. Assign a css class to weblinks (so they can be styled to indicate they’re external links).

              My question is how can I display links according a keywords.
                MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                • 15987
                • 786 Posts
                At this point that functionality does not exist in wayfinder.
                  • 22815
                  • 1,097 Posts
                  The keyword functionality does, however, exist in Ditto.
                  http://modxcms.com/Ditto-487.html
                  Ditto is geared towards listing the contents of documents, but a basic template with just a link to the document can be created.
                    No, I don't know what OpenGeek's saying half the time either.
                    MODx Documentation: The Wiki | My Wiki contributions | Main MODx Documentation
                    Forum: Where to post threads about add-ons | Forum Rules
                    Like MODx? donate (and/or share your resources)
                    Like me? See my Amazon wishlist
                    MODx "Most Promising CMS" - so appropriate!
                    • 27889
                    • 415 Posts
                    Thanks for your reply.
                    Kyle, are you planning to implement such filters ?
                      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                      • 15987
                      • 786 Posts
                      I will look into adding it, the reason I haven’t added any tv support is due to the extra processing required to get them included.

                      This discussion is closed to further replies. Keep calm and carry on.