We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33497
    • 30 Posts
    Tree Structure:
    Folder1
      Page1
        SubPage1
        SubPage2
        [...]
      Page2
        SubPage1
        SubPage2
        [...]
      [...]
    Folder2
      Page1
    [...]
    


    At first I just want to see PageX listed. When I select PageX, I want to get its SubPages listed under it
    e.g.
    Page1
    Page2
    Page3
    

    Click on Page2:
    Page1
    Page2
        SubPage1
        SubPage2
    Page3
    


    I don’t want to use JS/the accordion menu from the wiki.

    Current WF call
     [!Wayfinder? &startId=`[[UltimateParent]]` &level=`1` &hereTpl=`subNav_hereTpl` !]


    My first thought was to add another WF call into the subNav_hereTpl Chunk, but that does not work. It simply displays the WF call instead of executing it.
      • 33497
      • 30 Posts
      I came up in just displaying everything always
       Page1
          SubPage1
          SubPage2
          [...]
        Page2
          SubPage1
          SubPage2
          [...]
      

      Works as expected.
      But when I select a PageX the SubPages get folded (actually vice versa the way I wanted it at the beginning...)

      Clicked on Page1:
        Page1
        Page2
          SubPage1
          SubPage2
          [...]
      


      WF call
       [!Wayfinder? &startId=`[[UltimateParent]]` &hereTpl=`subNav_hereTpl` !]
      
        • 15987
        • 786 Posts
        just add the parameter &hideSubMenus=`TRUE`
          • 33497
          • 30 Posts
          Quote from: kylej at Jul 10, 2007, 08:51 PM

          just add the parameter &hideSubMenus=`TRUE`
          No, you have misunderstood me. I _want_ to display the submenues always.
            • 33337
            • 3,975 Posts
            Quote from: ZeTi at Jul 09, 2007, 06:12 AM

            ...........

            My first thought was to add another WF call into the subNav_hereTpl Chunk, but that does not work. It simply displays the WF call instead of executing it.

            If you want to do this, you need to use alternate snippet calls. i.e. if your outer call is [!....!], use [[....]] for the inner.
              Zaigham R - MODX Professional | Skype | Email | Twitter

              Digging the interwebs for #MODX gems and bringing it to you. modx.link
              • 22586
              • 74 Posts
              I hope this works for you Zeti, the nested calls. I didn’t get it too work in 0.9.6. SirLanceLot responded that 0.9.7 should have no problem with this.
                • 33497
                • 30 Posts
                Quote from: zi at Jul 11, 2007, 03:55 AM

                Quote from: ZeTi at Jul 09, 2007, 06:12 AM

                ...........

                My first thought was to add another WF call into the subNav_hereTpl Chunk, but that does not work. It simply displays the WF call instead of executing it.

                If you want to do this, you need to use alternate snippet calls. i.e. if your outer call is [!....!], use [[....]] for the inner.

                It works. It’s a ModX bug, isn’t it?

                Thanks smiley
                  • 33337
                  • 3,975 Posts
                  No its not MODx’s bug.. but its how MODx works smiley ...

                  regards.
                    Zaigham R - MODX Professional | Skype | Email | Twitter

                    Digging the interwebs for #MODX gems and bringing it to you. modx.link