Created
October 23, 2012 22:51
-
-
Save objectivehtml/3942288 to your computer and use it in GitHub Desktop.
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
| {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