• Can't get wayfinder parent class to work#

  • Terry Reply #1, 4 months, 2 weeks ago

    Reply
    I want to apply a style to the top level menu items when there are submenu items present. Here's my wayfinder call:

    [[Wayfinder? &startId=`0` &level=`2` &parentRowTpl=`parentrow` &parentClass=`navparents` &rowTpl=`rowtpl` &debug=`0`]]


    I have a chunk called parentrow:
    <li [[+wf.classes]]><a href="[[+wf.link]]" title="[[+wf.title]]" >[[+wf.linktext]]</a> ++ [[+wf.wrapper]]</li>
    


    The rowTpl is working just fine but the parentRowTpl is being ignored. There are no classes added to the parent li and the ++ (in the parentrow for testing) don't appear either.

    The debug report shows the values are retrieved from the DB and it shows the item in question as having children.

    I know this should be simple and straight forward, but I'm stuck. . .