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.

Conditional to detect a selected category

January 30, 2011 11:42am

Subscribe [3]
  • #1 / Jan 30, 2011 11:42am

    jsuissa

    147 posts

    Hi,

    I am displaying one entry per page for a portfolio and I want to highlight the active categories through a conditional statement on the template and can’t tell from the documentation if that is possible.

    Is it possible to detect whether a category is selected for a particular entry?

    Thanks in advance.

  • #2 / Jan 30, 2011 12:56pm

    BigCItyShelts

    35 posts

    Lots of options for working with the categories of an entry.  Probably what you are looking for is the variable pair {categories}{/categories} within the {exp:channel:entries} tag.  Are you familiar with this?

    http://ellislab.com/expressionengine/user-guide/modules/channel/variable_pairs.html#var_categories

    If you need more help, I could use more detail.

  • #3 / Jan 31, 2011 9:13am

    Sue Crocker

    26054 posts

    Thanks for the assist, BigCityShelts.

    jsuissa - does that information help?

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

ExpressionEngine News!

#eecms, #events, #releases