We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37059
    • 368 Posts
    What I want to do is pretty simple - take a document structure like this:

    - page1
    - page2
    - page2b
    - page2c
    - page3

    and output a menu like this:

    <ul>
    <li>page1</li>
    (exclude parent item page2)
    <li>page2b</li>
    <li>page2c</li>
    <li>page3</li>
    </ul>
    


    ???
      Jason
      • 26016
      • 561 Posts
      Hi,
      Yeah, those things always "sound" easy. Fortunately, Wayfinder can do pretty much anything. I haven’t been stumped even with the most ridiculous menu requests.

      Easiest idea, just do 2 Wayfinder calls, one of which starts at the root of those two. But that would assume that it’s OK to have those "2" after the others.

      Another idea, quite radical, if you’re into CSS, as I am:
      Go here, and have a look at &parentClass.
      http://muddydogpaws.com/development/wayfinder/parameters.html
      Then you style that one menu item so that the root is off the page(!), but the others are placed on the page. It’s trickier.

      Good luck,
      Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 37059
        • 368 Posts
        Thanks for the reply! smiley

        Sorry to be so long in answering - I’ve been busy with other projects.

        Quote from: samba at Nov 21, 2010, 06:20 PM

        Easiest idea, just do 2 Wayfinder calls, one of which starts at the root of those two. But that would assume that it’s OK to have those "2" after the others.

        In the actual installation, there are more than two - and it won’t work to have the submenus at the end of the call. Also I think that would require some heavy customization on the Wayfinder container TPL’s as the opening and closing ul’s would need to be manipulated.


        Another idea, quite radical, if you’re into CSS, as I am:
        Go here, and have a look at &parentClass.
        http://muddydogpaws.com/development/wayfinder/parameters.html
        Then you style that one menu item so that the root is off the page(!), but the others are placed on the page. It’s trickier.

        Very interesting, but quite radical indeed and more than I want to deal with at this point.

        Since I only have a total of 10 pages or so to deal with, I think I will just do a WF call that includes on the ID’s I want. Unless there’s yet another way? (hoping!)


        Fortunately, Wayfinder can do pretty much anything. I haven’t been stumped even with the most ridiculous menu requests.

        If the only solution is to have a new Wayfinder call for every submenu or construct some radical CSS, for all practical purposes this sure seems like a Wayfinder-stumper to me. smiley
          Jason
          • 4310
          • 2,310 Posts
          Maybe a parentRow tpl chunk just containing [+wrapper+] might work, untested but worth a try?
            • 37059
            • 368 Posts
            Quote from: bunk58 at Dec 04, 2010, 02:34 PM

            Maybe a parentRow tpl chunk just containing [+wrapper+] might work, untested but worth a try?

            You’re a genius! shocked

            Works a treat, just had to do the same thing with &innerTpl to get rid of the UL tags on the nested items.

            Thanks a bunch!

            In addition, Wayfinder the Great remains un-stumped. wink
              Jason