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.

Question about Channel Module and If Statements

August 02, 2010 2:09am

Subscribe [1]
  • #1 / Aug 02, 2010 2:09am

    melegaunt

    31 posts

    Ok I have a problem

    Im converting RSS feeds into Channel entries.

    Two of the fields in my channels are called summary and description.

    Is there a way in my exp:channel:entries tag to say:

    If there is text in description, then show description, but if not show summary?

  • #2 / Aug 02, 2010 2:23am

    melegaunt

    31 posts

    Never mind, this worked for me however mundane it is lol..

    {if description >"1"}
    {description}
    {/if}
    {if description <"1"}
    {summary}
    {/if}
  • #3 / Aug 02, 2010 3:00am

    John Henry Donovan

    12339 posts

    melegaunt,

    Alternatively

    {if description != ""}
    {description}
    {if:else}
    {summary}
    {/if}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases