Thanks, that does add the className but not to the menu-item corresponding to the resource id. It is being added to the first menu item instead.
Perplexity.ai came up with a similar solution using an output modifier but that yielded the same result: classname on the first menu item.
It looks like the output modifier isn’t working as expected within this pdoMenu call.
I found a solution: using [[+attributes]].
Setting a value to the attributes field of the resource with id 123, it is output on the link in the menu item, which in turn I can use as a css selector i.s.o. a className.
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”.