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.

please help with using conditionals with mapie

November 05, 2009 12:14pm

Subscribe [2]
  • #1 / Nov 05, 2009 12:14pm

    EYEWEAVER

    59 posts

    Hi every body..
    I’ve been struggling with this issue for a while now.. I need to check the “category” parameter in an RSS feed to do an action based on the content of that parameter.. but the conditional doesn’t seem to work..

    here’s the code I’m using:

    {exp:magpie url="site url" limit="10" refresh="720" }
    
    {magpie:items}
    
    {magpie:title}
    {magpie:description}
    {magpie:category}
    
    {if {magpie:category} == "cat1"}
    cat1.gif
    {/if}
    
    {/magpie:items}
    
    {/exp:magpie}

    I’d really appreciate it if someone helped me with this issue.

    Thanks every body 😊

  • #2 / Nov 05, 2009 4:03pm

    Ingmar

    29245 posts

    Try either:

    {if "{magpie:category}" == "cat1"}

    or (to be preferred if it works):

    {if magpie:category == "cat1"}
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases