Skip to main content
Tweeted twitter.com/#!/StackExpression/status/394171629418594304
code formatting
Source Link
Derek Hogue
  • 17.4k
  • 2
  • 27
  • 42

{exp:channel:entries channel="games" limit="1" dynamic="yes"}

{game_platforms} {if item == "PS3"}test{/if} {item} {/game_platforms}

{/exp:channel:entries}

{exp:channel:entries channel="games" limit="1" dynamic="yes"}
{game_platforms} 
    {if item == "PS3"}test{/if} 
    <span>{item}</span>
{/game_platforms} 
{/exp:channel:entries}

I set this up in a testing template and oddly, the curly braces aren't even parsing, here's what I'm getting:

{if "PC" == "PS3"}PS3{/if} PC {if "PS3" == "PS3"}PS3{/if} PS3 {if "Xbox 360" == "PS3"}PS3{/if} Xbox 360

{if "PC" == "PS3"}PS3{/if} PC {if "PS3" == "PS3"}PS3{/if} PS3 {if "Xbox 360" == "PS3"}PS3{/if} Xbox 360

Am I doing something wrong?

{exp:channel:entries channel="games" limit="1" dynamic="yes"}

{game_platforms} {if item == "PS3"}test{/if} {item} {/game_platforms}

{/exp:channel:entries}

I set this up in a testing template and oddly, the curly braces aren't even parsing, here's what I'm getting:

{if "PC" == "PS3"}PS3{/if} PC {if "PS3" == "PS3"}PS3{/if} PS3 {if "Xbox 360" == "PS3"}PS3{/if} Xbox 360

Am I doing something wrong?

{exp:channel:entries channel="games" limit="1" dynamic="yes"}
{game_platforms} 
    {if item == "PS3"}test{/if} 
    <span>{item}</span>
{/game_platforms} 
{/exp:channel:entries}

I set this up in a testing template and oddly, the curly braces aren't even parsing, here's what I'm getting:

{if "PC" == "PS3"}PS3{/if} PC {if "PS3" == "PS3"}PS3{/if} PS3 {if "Xbox 360" == "PS3"}PS3{/if} Xbox 360

Am I doing something wrong?

Source Link

"{if item == ... " not parsing

{exp:channel:entries channel="games" limit="1" dynamic="yes"}

{game_platforms} {if item == "PS3"}test{/if} {item} {/game_platforms}

{/exp:channel:entries}

I set this up in a testing template and oddly, the curly braces aren't even parsing, here's what I'm getting:

{if "PC" == "PS3"}PS3{/if} PC {if "PS3" == "PS3"}PS3{/if} PS3 {if "Xbox 360" == "PS3"}PS3{/if} Xbox 360

Am I doing something wrong?