You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
our navigation could get more styleable, if we had a class value (e.g. current) for the currently viewed item:
<a ... class="cms_nav_link current" ... >
For the pages we would have currently viewed page title == menu item title
We also would have to check for static front page and the list view of posts (which could have a own static page), as well as decide if we want to add a class value (perhaps current-parent) to the menu item in which the posts are, even if they are viewed in single view.
thanks
The text was updated successfully, but these errors were encountered:
Hey @maybegeek with the release of v2.0 and the restructuring of how CMS.js handles templates/nav this would probably best be solved with a custom plugin that could trigger onroute and check the instance's state to match on that. I'll close this for now but I think this would be a great idea to add to the new feature examples.
Hi there,
our navigation could get more styleable, if we had a class value (e.g.
current
) for the currently viewed item:<a ... class="cms_nav_link current" ... >
==
menu item titlecurrent-parent
) to the menu item in which theposts
are, even if they are viewed in single view.thanks
The text was updated successfully, but these errors were encountered: