Skip to content

Instantly share code, notes, and snippets.

@iso100
Created November 13, 2012 13:47
Show Gist options
  • Save iso100/4065843 to your computer and use it in GitHub Desktop.
Save iso100/4065843 to your computer and use it in GitHub Desktop.
Sizing Images based on P&T Pill Settings
{exp:stash:set name="blocks" parse="inward"}
{ov_blocks}
<div class="block{switch="| even"} size-{block_image_size}" id="block-{row_count}">
<div class="img">{exp:ce_img:single src="{block_image}" width="{block_image_size}" max_width="{block_image_size}" quality="72" alt="size:{block_image_size}"}</div>
{if block_headline}<h2>{block_headline}</h2>{/if}
{if block_content}{block_content}{/if}
</div>
{/ov_blocks}
{/exp:stash:set}
@iso100
Copy link
Author

iso100 commented Nov 13, 2012

Solution involved using P&T Pill's value : label format and going with non-semantic container names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment