Questions tagged [ifelse]

The tag has no usage guidance.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
56 views

How To Create Headers For A List

I have a list of items. Each item has a season. I am trying to organize the items by season. I believe the list is pre sorted and I need to create a header everytime there item has a new season In ...
1
vote
3answers
149 views

Setting a Stash variable within an old style EE conditional

I'm working on an old EE site (v2.5.2) which for reasons I won't go into I cannot update to a newer version. I am trying to set a Stash variable based on whether or not a condition evaluates to true. ...
1
vote
0answers
69 views

List entries grouped by field value and category

I have a channel (products) where each entry has only one category. Each entry also has a custom field (year) which stores a year value (e.g. 2015). The output I currently have looks like this (note ...
1
vote
0answers
62 views

How deep into a Matrix field type can I go with IF statements?

Bear with me as I explain my setup... I have a channel called Speaker and a channel field called speaker_media that is a matrix field type. Inside the matrix I have a channel field for speaker_audio, ...
0
votes
1answer
82 views

If statement when layout variable contains whitespace

I'm using an if statement in a layout to check if a layout variable contains any content. {if layout:sidebar} <div class="sidebar"> {layout:sidebar} </div> {/if} This works well ...
0
votes
1answer
69 views

Need help to stop inner conditionals from parsing with with nested conditionals and stash

I'm really stuck and I know it's likely something small that I'm missing. I read the page in the wiki that relates to stash conditionals (https://gist.github.com/croxton/9d012297096892ca5c10), but I ...
0
votes
1answer
74 views

Conditional Comparison Operator Not Working With Snippet

I am trying to get a snippet that calculates a value and compare the result to a number - the value is correctly outputted from my snippet when I include the var by itself. However when I use the ...
0
votes
2answers
93 views

Conditional statement syntax

I am working on an Expressionengine site at the moment, the client would like the ability to choose if there's a custom phone number in the sidebar of the page and if non is entered it just shows the ...
0
votes
1answer
40 views

Counting Results Outside Channel Tag

I have this peice of code: <div id="slide-block1" class="flexslider"> <div class="slides"> {exp:channel:entries channel="rotator-slides" ...