Hello there!
I have a question regarding the "renderNav" function used in the ‘intermediate’ site-profile. I have a multi-level menu system going by using the renderNav function, and I’d like to extend the default "renderNav" function to also mark all the parents of any given page with "current".
I think I have to modify this line from the "renderNav" function:
$out .= $item->id == wire('page')->id ? "<li class='current'>" : "<li>";
… specifically adding something along the lines of foreach parent of the itemid "<li class='current'>" else "<li>", but is there a neat way of putting that into the existing line? Or how would you do it?
Thanks!