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.

category : highlight current category

August 23, 2011 6:18am

Subscribe [3]
  • #1 / Aug 23, 2011 6:18am

    davedriesmans

    14 posts

    a very simple question but can’t find an answer:

    i have this now:

    
    
    

    but how can i highlight the current category in the list. i want something like this

    
    
    

    anyone?

  • #2 / Aug 23, 2011 6:33am

    Fusion Design

    128 posts

    Hi there,

    You should be able to use the following:

    {if "{segment_2}" == "C{category_id}"}class="{selectedcategory}"{/if}

    I hope that helps.

  • #3 / Aug 23, 2011 6:58am

    davedriesmans

    14 posts

    works!! thanks a lot!

  • #4 / Aug 23, 2011 7:14am

    Fusion Design

    128 posts

    Glad you could get it sorted!

  • #5 / Aug 23, 2011 10:59am

    Kyle Cotter

    730 posts

    Thanks for helping here Fusion!

    davedriesmans, if you have any more questions, feel free to post again!

    Thanks.

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

ExpressionEngine News!

#eecms, #events, #releases