How to highlight link in navigation sidebar to the parent main page when standing on a sub page

I have a navigation sidebar that contains links to all my main pages on the site - but not sub pages. I have successfully used the “current” state to highlight the link with the active main page in the sidebar.

When I navigate to a sub page I still want to have the parent main page highlighted in the sidebar. I can do it manually by making a unique sidebar for each main page and use these sidebars on the sub pages. But I would rather do it more intelligently like I do it now with the “current” state.

Is there a good way to achieve this?

/ Allan

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.