Skip to content

Instantly share code, notes, and snippets.

@adrienne
Created October 25, 2012 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrienne/3950202 to your computer and use it in GitHub Desktop.
Save adrienne/3950202 to your computer and use it in GitHub Desktop.
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