Last active
January 4, 2016 05:59
-
-
Save jamiepittock/8579243 to your computer and use it in GitHub Desktop.
Unique venues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:stash:set_list name="venues" parse_tags="yes" parse_conditionals="yes" trim="yes"} | |
{exp:channel:entries channel="events" dynamic="no" show_future_entries="yes"} | |
{if cf_events_place} | |
{stash:venue_title}{cf_events_place}{title}{/cf_events_place}{/stash:venue_title} | |
{stash:venue_id}{cf_events_place}{entry_id}{/cf_events_place}{/stash:venue_id} | |
{/if} | |
{/exp:channel:entries} | |
{/exp:stash:set_list} | |
<select> | |
{exp:stash:get_list unique="yes" name="venues" trim="yes"} | |
<option value="{venue_id}">{venue_title}</option> | |
{/exp:stash:get_list} | |
</select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah maybe. Other stashes on other pages were working ok though. It was just the inclusion of parse_tags and parse_conditionals that seems to throw it out.
Anyway, thanks again. I'll let you know if it happens again and I can replicate it.