We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26113
    • 88 Posts
    Is there a way to dynamically build a menu with Wayfinder?

    I have a menu generated looking inside a container which has a startid of 3.
    Each page within that will have 2-3 pages linked to them. So the structure is like:

    Areas of Practice (3)
      Erbs Palsy(3)
        Page 2(10)
        Page 3(11)
    
      Cerebral Palsy(5)
         Page 2(12)
         Page 3(13)
    
      Lead Poisoning(6)
        Page 2(14)
        Page 3(15)
    
      Labor Law(7)
        Page 2(14)
        Page 3(15)
    
    


    I have it setup where the menus for Areas of practice are genereated fine. The submenu of each of those pages however are causing issues. For example - to load the Areas menu I use:
    [!Wayfinder? &startId=`3` &outerTpl=`areaMenuOuter` &hereTpl=`hereText` &level=`1`!]

    On the template I call a snippet which loads another menu based on the current page:
    [!Wayfinder? &outerTpl=`areaMenuOuter` &hereTpl=`hereText` &level=`1`!]


    Problems occur here.
    1) The Areas menu displays the parent item as active and as a link which messes up the display.
    2) When I am on a page 2 or 3 of a link, the menu does not display since the startid is the current page.

    How can I fix these 3 issues?
    You can view the site at hand here:
    http://test.ronvil.com

    Thanks for your time.
    Rich
      • 7923
      • 4,213 Posts
      Quote from: sandman at Jan 02, 2007, 02:24 PM

      Is there a way to dynamically build a menu with Wayfinder?
      Umm.. yes. That’s what it’s basicly for..

      Didn’t understand what you want to do and the "Areas of Practice" page was empty..

      But if you want the parent documents to be just text and not links, use the parentRowHereTpl and parentRowTpl parameters to define a template chunks that only displays the text..


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."