We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39025
    • 21 Posts
    Guys I'm trying to create a menu like this, seems to be working ok, but only shows 5 of the 9 docs (or pages). None are hidden from menus, an idea why it wouldn't show them all?

    CArl
    • Change the limit property; it is set to 5 in the default properties.
        • 18367
        • 834 Posts
        Hi,

        I too am trying to recreate a Evo menu in Revo

        In Evo I did it with Ditto and it looked like this

        	<ul>[!Ditto? &parents=`22`  &hideFolders=`1`  &depth=`2` &tpl=`library-sidetemplate` &display=`20` !]
        									
        								</ul>


        In Revo I tried Wayfinder

        [[!Wayfinder? &parents=`8`  &startId=`8`   &level=`2`&hideFolders=`0`  &depth=`2` &tpl=`library-sidetemplate` &display=`20` !]]


        which almost worked but I want to stop the folders/containers from displaying.

        So I tried getResources

        [[!getResources? &parents=`[[*8]]`  &startId=`8`   &level=`2` &hideContainers=`1`  &depth=`2` &tpl=`library-sidetemplate` &limit=`20` !]]


        Which gave me zip.

        Hope all that makes sense, still new to Revo. Basically i want to hide the containers but still have resource list show in the menu.

        Thanks
          Content Creator and Copywriter
          • 3749
          • 24,544 Posts
          There are a few errors in your tag syntax and property settings. Try this:

          [[!Wayfinder?  &startId=`8`   &level=`2` &hideFolders=`1`  &depth=`2` &tpl=`library-sidetemplate` &display=`20` ]]


          or this:

          [[!getResources? &parents=`8`  &level=`2` &hideContainers=`1`  &depth=`2` &tpl=`library-sidetemplate` &limit=`20` ]]
          




          ------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using.
          MODX info for everyone: http://bobsguides.com/modx.html

            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 18367
            • 834 Posts
            Thanks Bob,

            but for some reason the Hide folders option isn't working in the Wayfinder call, and the getResources call still gives me zip.

            Here's the template chunk
            <li><a href="[[~[[+id+]]]]">[[+pagetitle+]]</a></li>


            Whoops, too many +'s that solved part of the problem with getresources. Still not displaying exactly as I planned,but it's another small step.

            OK, we have a winner, it's always in the syntax.

            Thanks Bob.
            [ed. note: markg last edited this post 12 years ago.]
              Content Creator and Copywriter
              • 3749
              • 24,544 Posts
              Yup, it should be:


              <li><a href="[[~[[+id]]]]">[[+pagetitle]]</a></li>



              *All* tags in Revo start with [ [ and end with ] ] (minus the space in between the brackets) and there are no tokens at the end, ever.



              ------------------------------------------------------------------------------------------
              PLEASE, PLEASE specify the version of MODX you are using.
              MODX info for everyone: http://bobsguides.com/modx.html
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
              • Quote from: jimbob72 at Nov 15, 2011, 04:25 PM
                This gives the active page the relevant class:
                [[+id:is=`[[*id]]`:then=`class="active"`]]


                And for nested nav you can use:
                [[+id:is=`[[UltimateParent? &id=`[[!*id]]`]]`:or:is=`[[*id]]`:then=`class="active"`]]


                Make sure the resource is uncached.

                I like this solution! Thanks. Output filters are such a time saver, no more IF snippet.
                  Sal Baldovinos
                  SEO & DIGITAL MARKETING

                  ARIEL DIGITAL | Maximize Your Potential
                  www.arieldigitalmarketing.com