Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created October 23, 2012 22:51
Show Gist options
  • Select an option

  • Save objectivehtml/3942288 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/3942288 to your computer and use it in GitHub Desktop.
{exp:channel:entries channel="your-channel" dynamic="no" disable="member_data|pagination"}
{exp:stash:append_list name='list' parse_tags="yes" save="yes" scope="site" context='{categories}{category_name}{/categories}'}
{stash:this_title}{title}{/stash:this_title}
{categories}
{stash:this_category_name}
{category_name}
{/stash:this_category_name}
{exp:stash:set name="test_var" type="snippet"}{category_name}{/exp:stash:set}
{/categories}
{/exp:stash:append_list}
{/exp:channel:entries}
{exp:stash:parse process="end"}
{exp:stash:get_list name="list" parse_tags="yes" parse_conditionals="yes" context="{test_var}" process="end"}
<div>
all my stash variables and html etc.
</div>
{/exp:stash:get_list}
{/exp:stash:parse}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment