We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    @mediced,

    For the topmenu:

    [[Wayfinder? &startId=`0` &level=`1`]]

    For the side menu:

    [!Wayfinder? &startId=`[[UltimateParent]]` &hideSubMenus=`1`!]


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 19004
      • 33 Posts
      Hmm, putting the second one in gave me this error:

      « MODx Parse Error »
      MODx encountered the following error while attempting to parse the requested resource:
      « Execution of a query to the database failed - Unknown column 'Array' in 'where clause' »
            SQL: SELECT sc.parent FROM `modxdemo`.modx_site_content sc LEFT JOIN `modxdemo`.modx_document_groups dg on dg.document = sc.id WHERE (sc.id=Array AND sc.published=1 AND sc.deleted=0) AND (sc.privateweb=0) LIMIT 1 


      I tried switching the snippet call to use [[Wayfinder]] instead of [!Wayfinder!] and the error went away but the "&hideSubMenus]]" showed up as text.

      NOTE: I have the latest version of UltimateParent installed (1.1)

      Quote from: doze at Sep 12, 2006, 10:59 AM

      @mediced,

      For the topmenu:

      [[Wayfinder? &startId=`0` &level=`1`]]

      For the side menu:

      [!Wayfinder? &startId=`[[UltimateParent]]` &hideSubMenus=`1`!]

        • 7923
        • 4,213 Posts
        Try the UltimateParent snippet what I have done in the support thread for that snippet to see if it helps..


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 19004
          • 33 Posts
          Thanks, that did the trick!

          Quote from: doze at Sep 12, 2006, 11:29 AM

          Try the UltimateParent snippet what I have done in the support thread for that snippet to see if it helps..

            • 15987
            • 786 Posts
            I have released a new version of Wayfinder in the Repository. Get it here: http://modxcms.com/Wayfinder-868.html

            It contains the following updates:

            * Added category support, with additional template
            * Added active parent template
            * Added docid placeholder for output of docid
            * Added separate placeholder for class names
            * Fixed last item detection
            * Updated to add parameter for using content for url or using docId for weblinks.
            * Added support for link_attributes
            * Made custom version of getActiveChildren in class
            * Added class for weblinks
              • 6926
              • 41 Posts
              Hi,
              I am facing this strange problem with one of my sites.

              The menu order does not seem to be proper. I have set Home menu index 1, about menu index 2 and our locations menu index 3 but it shows in this order:

              Home - Our Locations - About

              Any idea how to I fix the issue?

              Thanks
              Deep

              P.S. I am using the older version of the same snippet on of my sites and it works fine there.

              Edit: it seems that the issue is with Modx? It does not show the stuff according to menu index in the left side of manager too.
                Deep Ganatra
                Web1 Solutions
                • 15987
                • 786 Posts
                Deep,
                Can you look in the database to make sure that the menu indexes are set correctly? Wayfinder automatically sorts things by menu index, so it should put them in the correct order.

                To sort the doc tree in the manager you need to click the AZ icon above the tree and sort it by menu index if that is how you want it displayed.
                  • 16834
                  • 93 Posts
                  Hello, I am somewhat of a newbie to modx so please bear with me.

                  I have installed the version of Wayfinder beta3 released yesterday, 12th Sept 2006.

                  I am using it twice in my default template - as a main dropdown menu for site sections and as a subsidiary menu in a sidebar showing the contents of each section. These both work perfectly.

                  The sub-menu currently only appears when needed and disappears for sections without sub-pages. This is the functionality I want however I would like to have the heading "In this section:" above the menu when shown. I cannot just put it into my page template since it would appear on those pages where no menu is needed. It has to come from the Wayfinder snippet somehow.

                  I cannot hardcode it into the snippet since I do not want it to appear for both menus on the page. It therefore has to be included in the call to Wayfinder for the sub-menu. I cannot see the way to do this. Am I missing something please?

                  Alternatively, could someone advise me of the correct way to enter it into the template conditional on output from Wayfinder?

                  Thanks

                  Leapy
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Add it to your outer wrapper template.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 15987
                      • 786 Posts
                      leapy,
                      You could include that in a chunk template and then use that template in your snippet call like this:

                      Create a chunk named subMenuOuter with this in the chunk:

                      <p>In this section:</p><ul id="topnav"[+wf.classes+]>[+wf.wrapper+]</ul>


                      then in your sub-menu wayfinder call add this parameter:

                      &outerTpl=`subMenuOuter`

                      This discussion is closed to further replies. Keep calm and carry on.