We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26016
    • 561 Posts
    Hi!
    This is driving me nuts, so I thought I’d run it by some better brains.

    I wanted to have my Wayfinder menu begin below the root level, so to speak. Not so bad, I just used [*id*] as my startID.

    So when I bring up such a page, which I’ll call "level 1", it only shows items under the current page in the menu (not Home, etc.) I’ll call these menu items "level 2".

    When I click on a "level 2" page, typically, in your menu you may see the Current Item, as well as the items below it on Level 3 (or just items below it).

    But what I would like to see in the menu here is the Current Item AND all the links on the previous level. [breadcrumbs would show only one item in higher level, but not all]. I have not found a way to do this, even messing around with SectionRoots and UltimateParent.

    This is a crude illustration. When I am at the "I am here" spot, I’d like to see the items below it, like so:

    Level2 item
    Level3 item - I AM HERE.
    Other Level2 Item

    Is this possible?
    Thanks!!!!
    Samba
      MODx and Wordpress development
      Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
      • 29181
      • 480 Posts
      I think just about anything is possible with WF. If I understand you correctly, you want something like

      http://www.olson.bz/index.php?id=53

      where if you click into one of the orange menus links, it still displays the same menu, is that correct?

      if so, Ill show you the snippet Im using.

      Cheers,
      Taff
        Adrian Lawley: www.adrianlawley.com
        • 7455
        • 2,204 Posts
        you could use ultimateParent snippet to set the id if that is what you need as id (root folders) or use sectionroots or menudealer snippet to get the richt set of id’s
        another option is to use a tv to set id for the snippet and then use @INHERIT in the tv to keep the id uses in the first forlder to be set for all the other pages below that page.

        lots of other posibilities like PHx but I think that its not so complicated that you need PHx

        Dimmy
          follow me on twitter: @dimmy01
          • 26016
          • 561 Posts
          Quote from: Taff at Aug 04, 2007, 02:22 AM

          I think just about anything is possible with WF. If I understand you correctly, you want something like
          http://www.olson.bz/index.php?id=53
          where if you click into one of the orange menus links, it still displays the same menu, is that correct?
          if so, Ill show you the snippet Im using.
          Guys, Thanks for the replies!!!

          Taff,
          Thanks for your note! You asked if it would be similar to your orange menu. Sort of. Let’s say that in your menu you click on Dawg Ears, and there are things under it. I was hoping that Dawg Ears would then be greyed out (because you clicked on it), and the items under Dawg Ears would appear, indented.

          Something like this (below). This does three things - it shows that you clicked on Dawg Ears (which would be greyed out), you now have a list of things under it, yet you still see the items on the same level as Dawg Ears. The last part of this may be the Wayfinder killer, even if you have the right root by using Ultimate Parent. Feel free to prove me wrong! smiley

          Texas Pete
          Dawg Ears
          - Green Ears
          - Blue Ears
          - Red Ears
          Death Valley
          Tiger Bait
          Texas Pete Lemon

          Yes, I’d like to see your snippet call, even if your answer to the above is no! Any other comments welcome!!!!

          Thanks!!!!!
          Samba
          PS: Dimmy, I’ll take a look at your Menudealer idea and the TV. Thanks!
            MODx and Wordpress development
            Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
            • 26016
            • 561 Posts
            Folks,
            I think I solved it... here’s what I did.

            For StartID, I used this little beauty:
            [[UltimateParent? &id=`[*id*]` &top=`2`]]

            ... this meant the menu shows where I am, yet it keeps Level 2 as the bottom! But I also wanted to avoid showing submenus under Level 2. I turned on "HideSubMenus", and bing-bing-bada-bing. It also gives a breadcrumb type of effect. So I think I’m all set, unless the client finds something else to confuse matters! If they like it, I’ll mark this thing solved!!!

            The fact is, this time I made a list of possibilities/parms I could think of, went through each one, and wrote down each result - very systematic. Friday the temperature went over 90F, and I was just trying stuff as fast as I could think, and I would keep forgetting that I’d already tried something before. I was also too spaced out to even grasp the specs. Amazing what a little organization (and air conditioning) will do. wink Sometimes it’s tough, because I like to shoot from the hip.

            Thanks again for the ideas!!!!! You people are the greatest! Samba
              MODx and Wordpress development
              Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
              • 29181
              • 480 Posts
              Glad you found a solution. My solution was in effect exactly the same but I was had a setup like this:

              home
              -1
              --1.1
              --1.2
              -2
              --2.1
              --2.2
              ---2.2.1
              ---2.2.2
              ---2.2.3
              ---2.2.4
              -3

              Because the "orange bit" is the tertiary menu with 2.2.1 through to 2.2.4 I added the first level to a sectonRoots call and was simply checking if the parent wasnt in the sectionRoots return or the home doc it had to be the tertiary menu.

              As to not displaying the 4th level you could give all levels a default css of display:none apart from the active one?

              Anyways, good luck with the rest of your project.
              Taff
                Adrian Lawley: www.adrianlawley.com
                • 26016
                • 561 Posts
                Taff,
                Wow, ingenious plan, and nice explanation! And the CSS part - beautiful, I didn’t think of that at all. I hope your ideas help some other people, too.

                There are so many ways to do these things. With enough finagling, almost anything is possible with Wayfinder. Next thing you know someone will turn it on its side and have it expand vertically. Now wouldn’t that be fun? smiley

                Best,
                Samba
                  MODx and Wordpress development
                  Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4