So I need to define three different classes within Wayfinder:
active-class on the currently viewed page
dropdown-li-class on the li-item containing the dropdown list
dropdown-a-class on the a-item within the li-item containing the dropdown list
I know I can define the active-class with the &hereClass-property and also the dropdown class via the &parentClass. What I don’t know is how to set the &parentClass individually for the li and the a tag. As far as I know I can only define where all classes go with [[+wf.classes]]. Any ideas?
To be fair, turns out in my case Wayfinder could’ve worked just as well, I was simply too focused on setting the classes seperately from the templates. The solution is to simply add the needed classes in the &parentRowTpl (or now that I’m using pdoMenu in the &tplParentRow) like this:
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.