Hot answers tagged

4 votes
Accepted

Conditional if else Problem

Try this: <h3> {if long_titles} {long_titles} {if:else} {title} {/if} </h3>
jrothafer's user avatar
  • 5,900
2 votes

Conditional {if} and {if:else} Getting Error Message

You cannot close your exp:channel:entries-tag in a branch of the if-structure, because in case you have a banner (first branch) you finish the channel-loop and will not get to the end of the if-...
BNetz's user avatar
  • 470
2 votes
Accepted

Checking the channel in the channel entries tag

try using channel_short_name == "work" You can find the short name in the list of channels. Also in your channel tag, you'll need to specify both channels. channel="work|latest"
Jim Wyse's user avatar
  • 1,987
1 vote
Accepted

'IF' Conditional Not Working

It needs to look like this: {if segment_3 == "opening_night_concert1" XOR segment_3 == "the_greats" XOR segment_3 == "a_woodwind_affair"}
Jim Wyse's user avatar
  • 1,987
1 vote
Accepted

Conditional with if and ifelse not working

Option 1 - show nothing at all if there is no image: {if event_feature_image_04 OR event_feature_image_03 OR event_feature_image_02 OR event_feature_image_01} <img class="img-responsive ...
JCOGS Design's user avatar
  • 3,587
1 vote
Accepted

EE 2.5.5 how to use snippet in if statement

If you look at the parse order of the template engine, you'll see that although snippets do get parsed before conditionals, standard global variables (which includes {site_name}) don't get parsed ...
Derek Hogue's user avatar
  • 17.4k
1 vote

filter output with a loop: if {entry_id} not in array

If your goal is separate these specific entries and output them differently, use categories. You can then have content editors easily select (from the entry_form) entries that should be treated as ...
jrothafer's user avatar
  • 5,900
1 vote
Accepted

filter output with a loop: if {entry_id} not in array

Are you using version 2.9+? Which is the separator? Let's pretend you're and the separator is ,, giving you something like 1,2,3,4,5. Let's use the contains and the concatenation operators. Using ...
Sobral's user avatar
  • 6,108

Only top scored, non community-wiki answers of a minimum length are eligible