We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17959 ☆ A M B ☆
    • 57 Posts
    Magnatron [Maarten Wolzak] Reply #1, 16 years, 11 months ago
    Is there some way to use WayFinder with a startid like`root+1`?

    When i have a sitemap like:

    page 0
      page 1
        page 4
        page 5
      page 2
        page 6
        page 7
        page 8
      page 3
        page 9
          page 11
            page 12
          page 13
        page 10


    I would like to be able to use a template with a submenu starting at (not showing) 1, 2 or 3.

    Of course at pages 4,5,6,7,8,9 & 10 i’d be able to use [*parent*] as start id. But more accurate would be [*root+1*] (from a usability POV)
    I do not like that i have to make a new template for every level that comes after the first.

    I know it is possible with absolute positioning but this is, in my opinion, not a very elegant solution.

    What i do now is create a wrapper snippet, finding the right startid and calling the wayinder snippet from that.
    It would be nice to know if this is unnecessary.

    Cheers,
    Maarten
      • 4172
      • 5,888 Posts
      Try it with UltimateParent:
      [!Wayfinder? &startId=`[[UltimateParent? &topLevel=`2`]]`...........!]

        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 17959 ☆ A M B ☆
        • 57 Posts
        Magnatron [Maarten Wolzak] Reply #3, 16 years, 11 months ago
        Thanks Bruno,

        I didn’t try your solution as i have a workaround in place so i’m not sure if it works. I don’t have good experiences with embedding snippets in parameters of other snippets...

        I was wondering if there’s an ’official’ solution available in Wayfinder.