We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6604
    • 2 Posts
    Hello modX community. Would anyone know where any real-world examples of wayfinder-based subnavs would be located to inspect?

    I currently have a single template containing two instances of wayfinder. The first is your standard horizontal topnav dropdowns -- currently working fine.

    The second instance is a left nav displaying the children of the topnav parent nodes(while hiding the parents via a blank ParentRowTpl ) I then display the parent node via the ActiveParentRowTpl in a h3 before the wf.wrapper.

    This system works well for displaying the entire topnav and when clicking on, for example ’about us’ in the topnav you are directed to a page with the leftnav displaying ’About Us’ in a h3 with a ul under it displaying only the children contained within the ’about us’ folder in the modX manager.

    The problem arises when ’About Us’ folder has a child with a child, for instance: about us/who we are/staff. This blows everything up(I assume due to the wonky blank Tpl that is used).

    Anyway, if anyone has come across this rather standard navigation implementation and could point to an example it’d be great -- I’m a newb and am not quite sure how to attack this problem... maybe different templates with ignoreDocs or something... I’m unsure at this point.

    Any help would be greatly appreciated.

    Thanks much.



      • 16183
      • 1,390 Posts
      Hi darrick, welcome to modx!

      Live examples of wayfinder can be found here http://www.muddydogpaws.com/development/wayfinder/examples.html on the site of its developer

      However, you won’t find an example of this particular menu type there. In your case, if I got you correctly, one way you can achieve what you are looking for is using wayfinder together with the snippet called ultimate parent. If you installed modx with the sample content then you have it installed already. If not you can find it in the wiki. Here’s an example of someone who had the exact, well almost exact, problem like yours. No need for me to re-type the solution here, and it’s getting late anyway,  grin so here’s the link - make sure to read the whole post:

      http://modxcms.com/forums/index.php/topic,30089.msg182634.html#msg182634

      All the best!

      /k
        • 20413
        • 2,877 Posts
          @hawproductions | http://mrhaw.com/

          Infograph: MODX Advanced Install in 7 steps:
          http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

          Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
          http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
          • 6604
          • 2 Posts
          OK, so the jist of the solution would be to use the ultimateParent snippet in the startId to populate the subnav with the children and the children’s children but not the doc tree’s root nodes. Correct?