Created
June 6, 2012 16:15
-
-
Save litzinger/2882992 to your computer and use it in GitHub Desktop.
Stash side effects
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
{!-- 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 »</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} |
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: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 »</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