ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Dynamic Navigation Menu from Categories help!

March 12, 2012 1:03pm

Subscribe [2]
  • #1 / Mar 12, 2012 1:03pm

    Henrik Holben

    8 posts

    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

  • #2 / Mar 13, 2012 10:59am

    Shane Eckert

    7174 posts

    Hello Henrik,

    Thank you for your question.

    There is a plugin called GWcode CatMenu that might make this process much easier for you. If you are open to it, you might give it a try.

    I can also move this thread over to the Community Help Forum. More eyes on this one might yield some great tips on how to best do this using categories.

    Let me know your thoughts.

    Cheers!

  • #3 / Mar 13, 2012 2:09pm

    Henrik Holben

    8 posts

    There is a plugin called GWcode CatMenu that might make this process much easier for you. If you are open to it, you might give it a try.

    I can also move this thread over to the Community Help Forum. More eyes on this one might yield some great tips on how to best do this using categories.

    Let me know your thoughts.

    Cheers!

    Thanks Shane!

    I will defiantely check out this Plugin! it seems to do alot of cool featues with the Categories which I wish to do so that’s great!

    Yes, please do forward the thread to the Community perhaps someone can give some simple code examples without the plugin that would be awesome!

     

  • #4 / Mar 13, 2012 8:07pm

    Sean C. Smith

    3818 posts

    Hi Henrick,

    Glad that Shane was able to point you in the right direction. Have moved this thread to Community help at your request.

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases