I’m working on embeds currently and i have {embed="global/header"} in my main template. In the header template I have my logo/menu and I was wondering how do I have the menu list item display as active for the current page?
Like if I have the pages Home, Work, About Contact and I’m currently on the “About” page it would look like this:
<ul>
<li><a href="/home">Home</a></li>
<li><a href="/work">Work</a></li>
<li class="active"><a href="/about">About</a></li>
<li><a href="/contact">Contact</a></li>
</ul>I ask because the only way I can do this while keeping {embed="global/header"} is if its done dynamically somehow.. if not I would think I would have to add the menu to every page and add the class=“active” to the right pages