We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15716
    • 57 Posts
    I’m very new to WF, and I’m stuck...my problem is:

    I have a page structure like this:

    -Home
    -Portfolio
    -page1
    -page2
    -Contact

    I’m trying to make a menu for the portfolio page. I want the "Portfolio" page to be displayed at the top, for the that page and the sub-pages...
    I’ve tried a lot of different code, but I can’t seem to find the right combo. Right now it won’t display "Portfolio", only page 1, page 2, etc...Here is my code:

    [!Wayfinder? &startId=`58` &level=`0` &displayStart =`TRUE` &startItemTpl=`portfolio.startItem` &parentRowTpl=`portfolio.parentRow` &outerTpl=`portfolio.outer` &rowTpl=`portfolio.row` &hereTpl=`portfolio.here` &cssTpl=`portfolio.style`!]

    using &startId=`0` or `[*parent*]` isn’t working...
      • 5727
      • 160 Posts
      Edit: Use [[UltimateParent]] for the startId, like this:

      [!Wayfinder? &startId=`[[UltimateParent]]` &level=`0` &displayStart =`TRUE` &startItemTpl=`portfolio.startItem` &parentRowTpl=`portfolio.parentRow` &outerTpl=`portfolio.outer` &rowTpl=`portfolio.row` &hereTpl=`portfolio.here` &cssTpl=`portfolio.style`!]
      
        Olivier Deland
        Montreal, Canada - Web Developer
        • 15716
        • 57 Posts
        Thanks, but that doesn’t work either. Maybe I’m doing something wrong... All I know is that If I put &startId=`0` it will display every page. I guess the problem right now is that when I’m on the parent page, aka portfolio, how do I display that current page in the menu? I’m kind of lost, so any help is appreciated.
          • 5727
          • 160 Posts
          I’m not sure I understand your problem fully, but I think it might be related to the displayStart paramter. Here is what the doc says :
          The displayStart parameter will cause Wayfinder to output the document used as the startId using the template startItemTpl. This parameter only works if the startId is not equal to zero. This functionality was added so that it is easy to add header to submenus.

          Also, try setting &displayStart=`1` instead. Or maybe you need to have a placeholder in the startItemTpl... not sure. Did you read the doc at http://www.muddydogpaws.com/development/wayfinder/parameters.html?
            Olivier Deland
            Montreal, Canada - Web Developer