Hi all,
Having problems using conditionals in stash. Essentially I want to use one channel:entries query to populate two lists of events, Past and Upcoming. There are three events Event 1, Event 2 and Event 3. Event 1 is in the past and the other two are in the future.
{if '{event_date format="%U"}’ <= ‘{current_time}’} {exp:stash:append_list name="past"} {stash:title}{title}{/stash:title} {/exp:stash:append_list} {if:else} {exp:stash:append_list name="upcoming"} {stash:title}{title}{/stash:title} {/exp:stash:append_list} {/if}
I have tried it with and without parse_conditionals = to yes and no…
All three events are returned in BOTH lists as if it’s ignoring the conditionals wrapped around the append completely…
Any suggestions welcome
Thanks,
Pete
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.