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 question

September 18, 2010 12:36pm

Subscribe [1]
  • #1 / Sep 18, 2010 12:36pm

    vacquah

    355 posts

    Can I do something like this:

    {if channel =="abc"}content{/if}

    not working for me ...

  • #2 / Sep 18, 2010 3:37pm

    Lisa Wess

    20502 posts

    When troubleshooting these types of questions, make sure you output your variable:

    {channel}

    So that you can see exactly what you’re comparing to.

    I suspect that what you are looking for is channel_short_name.  And of course, these would need to be inside the channel entries tag.

  • #3 / Sep 18, 2010 4:26pm

    vacquah

    355 posts

    I suspect that what you are looking for is channel_short_name.  And of course, these would need to be inside the channel entries tag.

    thank you - that was it.

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

ExpressionEngine News!

#eecms, #events, #releases