Created
October 15, 2012 15:16
-
-
Save electricputty/3893041 to your computer and use it in GitHub Desktop.
This file contains 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
First set: | |
(0.067957 / 16.16MB) Stash: SET proj_list to value |+|proj_title|=|MS Society|&|proj_url|=|ms-society|&|proj_cat|=|{exp:gwcode_categories entry_id='196' style='linear' limit='1'}{cat_url_title}{/exp:gwcode_categories}|&|proj_img|=|http://xxx.xxx.xxx/uploads/images/hawkhurst.jpg|&|proj_size|=|{exp:low_random:number from="2" to="4"} | |
Retrieve: | |
(0.070703 / 16.12MB) Stash: RETRIEVED proj_list with value |+|proj_title|=|MS Society|&|proj_url|=|ms-society|&|proj_cat|=|{exp:gwcode_categories entry_id='196' style='linear' limit='1'}{cat_url_title}{/exp:gwcode_categories}|&|proj_img|=|http://xxx.xxx.xxx/uploads/images/hawkhurst.jpg|&|proj_size|=|{exp:low_random:number from="2" to="4"}|+|proj_title|=|Lambeth Council|&|proj_url|=|lambeth-council|&|proj_cat|=|{exp:gwcode_categories entry_id='197' style='linear' limit='1'}{cat_url_title}{/exp:gwcode_categories}|&|proj_img|=|http://xxx.xxx.xxx/uploads/images/theoldcourtroom.jpg|&|proj_size|=|{exp:low_random:number from="2" to="4"} | |
And the problem area: | |
===================== | |
{exp:stash:get_list name="proj_list" offset="1"} | |
<div class="block{proj_size} masonary"> | |
<a href="{site_url}work/{proj_cat}/{proj_url}/" class="box"> | |
{switchee variable="{proj_size}" parse="inward"} | |
{case value="2"} | |
{exp:ce_img:single src="{proj_img}" width="206" height="215" crop="yes"} | |
{/case} | |
{case value="3"} | |
{exp:ce_img:single src="{proj_img}" width="313" height="215" crop="yes"} | |
{/case} | |
{case value="4"} | |
{exp:ce_img:single src="{proj_img}" width="420" height="215" crop="yes"} | |
{/case} | |
{/switchee} | |
<div class="box_hover_text"><p>{proj_title}</p></div> | |
</a> | |
</div> | |
{/exp:stash:get_list} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment