Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Quick Stash thing
{!-- putting the items in lists --}
{exp:channel:entries channel="clinical_trials" orderby="ct_last_updated" sort="desc" status="not Closed"}
{exp:stash:append_list name='ct_recruitment_list'}
{stash:listitem}
{ct_recruitment}
{/stash:listitem}
{/exp:stash:append_list}
{exp:stash:append_list name='ct_agegroups_list'}
{stash:listitem}
{ct_age_groups:ct_age_group}
{/stash:listitem}
{/exp:stash:append_list}
{exp:stash:append_list name='ct_conditions_list'}
{stash:listitem}
{ct_conditions}
{/stash:listitem}
{/exp:stash:append_list}
{/exp:channel:entries}
{!-- getting the items out after your loop has run --}
<h2>RECRUITMENT</h2>
{exp:stash:get_list process="end" name="ct_recruitment_list"}
{stash:listitem}<br />
{/exp:stash:get_list}
<h2>Age Group</h2>
{exp:stash:get_list process="end" name="ct_agegroups_list"}
{stash:listitem}<br />
{/exp:stash:get_list}
<h2>Conditions</h2>
{exp:stash:get_list process="end" name="ct_conditions_list"}
{stash:listitem}<br />
{/exp:stash:get_list}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.