We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18940
    • 152 Posts
    I want to display child pages in my navigation (only)when I click on them.

    This is the menu now:
    Welkom
    Wie ben ik
    Fotoalbum
    Tips & truuks
    Lessen
    Contact
    Links
    Gastenboek
    Lokatie


    I want it to be like: (so when ’Fotoalbum is clicked it expands with a dropdown child’
    Welkom
    Wie ben ik
    Fotoalbum [parent]
    - SUBMENU [child]
    Tips & truuks
    Lessen
    Contact
    Links
    Gastenboek
    Lokatie


    This is the website: http://www.meli.nl
    (Please view in Internet Explorer as I still need to fix the template for firefox)
      Quality doesn't need a big signature.
      • 33337
      • 3,975 Posts
      Use &hideSubMenus=`1`
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 18940
        • 152 Posts
        That didn’t fixed it, this is my call:
        [[Wayfinder? &startId=`0` &level=`1` &hideSubMenus=`1` &activelink=`active` &rowTpl=`navMenu`]]

        EDIT: I’ve taken a look how Sottwell.com did it and that fixed it:
        [!Wayfinder? &startId=`0`!]

        I guess my rowTpl neews to be extended smiley


        Cheers!
          Quality doesn't need a big signature.
          • 16183
          • 1,390 Posts
          What Zi says does work but to keep the sub-menus always open/displayed when their parent menu is active, I think you need javascript, e.g. jQuery...?
            • 18940
            • 152 Posts
            Okay after some tweaking with the code you guys gave me I fixed it:

            The call:
            [[Wayfinder? &startId=`0` &hideSubMenus=`1` &activelink=`active` &rowTpl=`navMenu`]]


            {{navMenu}}:
            <li[+wf.classes+]><a  class="menu" [+wf.classes+] href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>



            Thnx guys
              Quality doesn&#39;t need a big signature.