We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Stash Lists and Conditionals

How Do I?

pwindle's avatar
pwindle
1 posts
8 years ago
pwindle's avatar pwindle

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

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.