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 inside exp:channel:categories is being ignored ...

March 29, 2012 2:14pm

Subscribe [2]
  • #1 / Mar 29, 2012 2:14pm

    markphillip

    105 posts

    Can’t figure out why the conditional in this code block this isn’t working ...

    {exp:channel:categories channel="videos" id="nav_categories" class="nav_categories" show_empty="no"}
    <a href="http://{path=/videos}class=current_cat">{category_name}</a>
    {/exp:channel:categories}

    I’ve tested and the segment_2 variable is outputting correctly as is the category_id variable ... just not when inside of the conditional ... which *should* work, shouldn’t it?

    Any help would be appreciated!

    EEv2.4.0 - Build: date 20120123

  • #2 / Mar 29, 2012 4:57pm

    markphillip

    105 posts

    Something going on ... not all my code is showing ... at any rate, I solved this one ... please close it down.

  • #3 / Mar 30, 2012 3:10pm

    Shane Eckert

    7174 posts

    Hey markphillip,

    Sorry that you were running into this but glad you got it worked out.

    Often time when a conditional is giving you trouble, you want to take a quick peek at Parse Order.

    Have a great weekend!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases