We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 198
    • 7 Posts
    Hello, I recently started using modx and I have looked through the documentation and forum but haven’t been able to find an answer to my question. Basically right now I got the wayfinder working with 1 level, in my design to create my main menu. For ease of explaining we will say these are Home, About Us, and Contact.

    What I’m trying to do now is add a submenu, located on a different part of the page. So the About Us page might have 4 different sub pages.

    I assume that the 4 pages would be put under the About Us in the tree structure. This is where I get lost, do I put the wayfinder in the main About Us and is there a way to include the child documents into that? Or do I put the wayfinder on each of the child documents?

    Also, when you click About Us from the main navigation the page that loads is not About Us, but rather the first submenu item of About Us. I’m not sure how that plays into the structure of how the pages should be placed and how the wayfinder should be configured.

    Finally, how do I ensure the the class=active stays activated for About Us on the main menu when navigating through the submenu? Will this happen naturally?

    Thank you so much for your time.

    -Roy
      • 11668
      • 14 Posts
      I’m a newbee at MODx as well, and I must have spent about an entire week surfing and googling around finding a solution to this very same problem. So please, if anybody has an idea as to how this works, I’d be very grateful.

      Ta,

      Hakim
        Hakim
        • 11975
        • 2,542 Posts
        Hi,

        Quote from: a2b2c2d at Jan 31, 2008, 12:33 PM

        What I’m trying to do now is add a submenu, located on a different part of the page. So the About Us page might have 4 different sub pages.

        Add a second WF call in the children template.
        If you want to keep only one template, have a look at PHx plugin for conditionnal insertion.


        I assume that the 4 pages would be put under the About Us in the tree structure. This is where I get lost, do I put the wayfinder in the main About Us and is there a way to include the child documents into that? Or do I put the wayfinder on each of the child documents?

        Your subpages must be childrens of the main item (About Us for instance)


        Also, when you click About Us from the main navigation the page that loads is not About Us, but rather the first submenu item of About Us. I’m not sure how that plays into the structure of how the pages should be placed and how the wayfinder should be configured.

        Use the firstChildredirect Snippet.


        Finally, how do I ensure the the class=active stays activated for About Us on the main menu when navigating through the submenu? Will this happen naturally?

        Yes It’s the default Behavior.

        :-)
          Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
          • 198
          • 7 Posts
          Thank you heliotrope, that was exactly the kind of answer I was looking for. I am going to try and implement that today and I will let you know if I run into any problems.
            • 198
            • 7 Posts
            I got the structure and redirect working well. However, I do not want multiple templates so I was going to use PHx as you suggested. I cannot get it to load wayfinder. Can you give me a usage example with the wayfinder, if page id = 51? And how do you send wayfinder parameters without the back ticks conflicting with PHx?

            Thanks!
              • 198
              • 7 Posts
              I figured it out! Thanks again for all the help.