Skip to content

Instantly share code, notes, and snippets.

@litzinger
Created June 6, 2012 16:15
Show Gist options
  • Save litzinger/2882992 to your computer and use it in GitHub Desktop.
Save litzinger/2882992 to your computer and use it in GitHub Desktop.
Stash side effects
{!-- START page --}
{exp:channel:entries
channel="pages"
disable="{global:disabled_params}"
{global:transcribe}
{global:cache_tag}}
{exp:stash:set name="content"}
content....
{exp:playa:children var='lv_featured_library' disable="member_data|pagination"}
<div class="featured-resource">
<div class="thumbnail"><a href="#"><img src="http://www.ariba.com/img/resourcelibrary/asset_pdf.png" width="176"></a></div>
<p class="largen bold"><a href="#">{title}</a></p>
<p class="description">{library_body} <a href="#">Read More &raquo;</a></p>
<p class="small type whitepaper">{categories limit="1"}{category_name}{/categories}</p>
<p class="small date">{edit_date format="{global:date_numeric}"}</p>
</div>
{/exp:playa:children}
more content....
{/exp:stash:set}
{/exp:channel:entries}
{exp:stash:set name="featured_library"}
<h2 class="lato xxlargen margin_bottom_03">Featured Resources</h2>
{exp:playa:children var='lv_featured_library' disable="member_data|pagination"}
<div class="featured-resource">
<div class="thumbnail"><a href="#"><img src="http://www.ariba.com/img/resourcelibrary/asset_pdf.png" width="176"></a></div>
<p class="largen bold"><a href="#">{title}</a></p>
<p class="description">{library_body} <a href="#">Read More &raquo;</a></p>
<p class="small type whitepaper">{categories limit="1"}{category_name}{/categories}</p>
<p class="small date">{edit_date format="{global:date_numeric}"}</p>
</div>
{/exp:playa:children}
{/exp:stash:set}
{!-- START page --}
{exp:channel:entries
channel="pages"
disable="{global:disabled_params}"
parse="inward"
{global:transcribe}
{global:cache_tag}}
{exp:stash:set name="content"}
content....
{exp:stash:get name="featured_library"}
more content....
{/exp:stash:set}
{/exp:channel:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment