We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29966
    • 2 Posts
    Hello, I´m a total newbie to MODx, using Revolution.

    I´ve been reading "The (almost) Complete Guide to Constructing Menus in MODx Using Wayfinder" and successfully managed to make a first level top horizontal menu.

    However, I can´t get the second level vertical sidebar menu to work after following the instructions from the above mentioned documentation.


    Code for the first level horizontal menu (output working fine):
    [[Wayfinder? &startId=`0` &outerTpl=`menuContainer` &rowTpl=`menuRows` &level=`1` &excludeDocs=`16`]]



    Code for the second level vertical menu (output displays the code):
    [!Wayfinder? &startId=`[[UltimateParent]]` &outerTpl=`menuContainer` &rowTpl=`menuRows` &level=`1` &excludeDocs=`16`!]

    I just cannot get this one to work, the output displays just the code itself.


    (Also, I installed the snippets for Wayfinder and UltimateParent - and made Chunks for menuContainer and menuRows).

    Whats wrong? What did I miss here?
      • 1778
      • 659 Posts
      I think you have to call UltimateParent UNcached...

      First, change your Wayfinder call for the second menu using the tags for Revo (in the books that is not totally updated for Revo), and call UltimateParent UNcached should solve the problem

      try this :
      [[!Wayfinder? &startId=`[[!UltimateParent]]` &outerTpl=`menuContainer` &rowTpl=`menuRows` &level=`1` &excludeDocs=`16`]]
      


      Add one bracket "[" at the beginning of the call, add one at the end, remove the "!" at the end, add one "!" in the UltimateParent call to make it uncached...

      Hope this helps
      Cheers
        • 29966
        • 2 Posts
        That solved it, what a relief!

        Thanks a million anso!