Hello everyone!
I would apprecoate it very much if someone could help me and show the best and smartest way to make Dynamic navigation and get the links in the Menu from Categories within a Channe! I have seen many different ways of doing it just wonder if someone could show me the right way to do it!
I usully do it all “static” like this ususally with a “selected” in the Navigation to hignlight the location with embed always works… this is what I want to do not sure how to wtite the Category tag the right way!
<li><a{if embed:my_location=='home'} class="selected"{/if} href="{homepage}" ><span>Home</span></a></li>
<li><a{if embed:my_location=='cars'} class="selected"{/if} href="{path='cars'}"><span>Cars</span></a></li>
<li><a{if embed:my_location=='boats'} class="selected"{/if} href="{path='boats'}"><span>Boats</span></a></li>
<li><a{if embed:my_location=='bikes'} class="selected"{/if} href="{path='bikes'}"><span>Bikes</span></a></li>We have one Channel called “items” for example
Three Categories Cars - Boats- Bikes
What’s the EE Tag I need to use with the “selected” class? I’ve seen someone using “active”? I need it to be changable let’s say I wish to inside EE as susal I make Up and Down Categores to sort the order order insde EE but I need to to change the order of the links in the Menu to Bikes - Boats - Cars in this order in the Menu after maing the change inside EE Categories it needs to output the right order of the Categories in the Navigation!
I would be grateful if someone could show me the complete EE Categories tag I need to use to accomplish this!!
Best regards, Henrik