We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10190
    • 187 Posts
    Dear Wayfinder specialists,

    after playing alot with WF and reading Kongondos excellent tutorial on WF, I’m trying to rebuilt a complex horizontal menu with WF.

    For this I would need different templates for parent Items (folders with children visible in the menu), as first level items should be styled differently then parent items in the second or deeper levels.

    I could achieve this by using the level parameter, but unfortunatly it’s necessary for me to have different templates(!), not only different CSS style definitions (because of if conditions for IE6/7).

    Does anyone have a clue how this can be achieved? I probably only missed something in the tutorial or in WF docs’?

    Maybe I should go for PHx? Would it be possible to do something like:

    [!Wayfinder2?&:level=`1`:then=`parentRowTpl=`drop_parentRow``:else=`parentRowTpl=`drop_parentRow2``!]


    Cheers, Frisco
      • 10190
      • 187 Posts
      Hi,

      I was successfull with this chunk for parentRowTpl:

      [+phx:if=`[+wf.level+]`:is=`1`:then=`
      <li class="top">...</li>`:else=`
      <li [+wf.classes+]>...</li>
      `+]


      BTW, I’m still wondering wether it should be is=`1` or is=`level1`, but nevertheless, it works as it is wink

      Cheers, Frisco