Created
October 25, 2012 03:02
-
-
Save adrienne/3950202 to your computer and use it in GitHub Desktop.
Quick Stash thing
This file contains hidden or 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
{!-- 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