4
votes
Accepted
Conditional if else Problem
Try this:
<h3>
{if long_titles}
{long_titles}
{if:else}
{title}
{/if}
</h3>
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-...
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"
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"}
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ifelse × 62conditionals × 26
channel-entries × 6
ee2 × 5
categories × 4
stash × 4
advanced-conditionals × 4
comparison × 4
templates × 3
matrix × 3
playa × 3
channel × 3
variable × 3
grid × 2
parse-order × 2
segments × 2
url-title × 2
loop × 2
switchee × 2
snippets × 2
syntax × 2
string × 2
assets × 1
members × 1
safecracker × 1