We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    Is it possible to show some navigation starting from the current ID?

    Lets say I have the following menu structure:

    - home (1)
    - about (2)
    - projects (3)
    -- latest
    -- archive
    - contact (4)

    When I´m on page home (1) the output needs to be: - home (1) - about (2) - projects (3) - contact (4)
    When I´m on page projects (3) (or subnav) the output needs to be: - projects (3) - contact (4) - home (1) - about (2)

    Maybe I can use ditto or wayfinder for it or are there other solutions?
    I hope it can be done with Ditto or custom script!


    The output looks like below code;
    <a href="#"><h2>[*customtv?*]</h2><img width="420" height="300" alt="" src="http://placehold.it/420x300/cc0000/ffffff" /></a>
      Evolution user, I like the back-end speed and simplicity smiley
      • 9995
      • 1,613 Posts
        Evolution user, I like the back-end speed and simplicity smiley
        • 9995
        • 1,613 Posts
        I have decided to do this handmade making 5 chunks
          Evolution user, I like the back-end speed and simplicity smiley
          • 18608
          • 112 Posts
          Ditto is for Evolution and Wayfinder is for Revolution - which version are you using?

          What you need to do is use the current ID as the starting point for the menu. Like this:

          [[Wayfinder? &startId=`[[*id]]` &tpl=`yourTpl`]]


          The above is for revo.
            Mathias Dannevang | Webdesigner at dannevang.org | Tweets @dannevang
            • 9995
            • 1,613 Posts
            Forgot to say I'm on Evo.

            When I use the wayfindercall for Evo I don't get what I want.
            When I´m on page projects (3) (or subnav) the output needs to be: - projects (3) - contact (4) - home (1) - about (2)
              Evolution user, I like the back-end speed and simplicity smiley
              • 18608
              • 112 Posts
              In evo the current id is called like this:

              [*id*]


              You can find the documentation for Wayfinder for Evo here:

              http://rtfm.modx.com/extras/evo/wayfinder
                Mathias Dannevang | Webdesigner at dannevang.org | Tweets @dannevang
                • 9995
                • 1,613 Posts
                It's not what I'm trying to do.
                when I use the current id as a startid it shows only the subnav of that id.

                I'm trying to get the sortorder different based on current id.

                so when I'm on page 3 show 3,4,5,1,2 and not 1,2,3,4,5
                  Evolution user, I like the back-end speed and simplicity smiley
                  • 18608
                  • 112 Posts
                  Ah, sorry I misunderstood that.

                  I can't think of any the settings for wayfinder that will accomplish that. Perhaps ditto can, but I never worked with evo so I'm not to familiar with ditto.
                    Mathias Dannevang | Webdesigner at dannevang.org | Tweets @dannevang
                    • 9995
                    • 1,613 Posts
                    no problem smiley

                    prolly needs some custom coding.
                    the handmade stuff i use now is oké too atm.
                      Evolution user, I like the back-end speed and simplicity smiley