pepebe
10/1/2012 - 6:36 PM

Example of optimizing conditional filters using a Chunk wrapper

Example of optimizing conditional filters using a Chunk wrapper

<img src="[[[[+src]]:phpthumbof=`[[+thumbOpts]]`]]" alt="[[+alt]]" />
[[*page-image:notempty=`
  <img 
    src="[[*page-image:phpthumbof=`w=480h=320`]]" 
    alt="[[*pagetitle]]" 
  />
`]]
[[[[*page-image:notempty=`$wrapImgThumb? 
  &src=`*page-image` 
  &alt=`[[*pagetitle]]` 
  &thumbOpts=`w=480&h=320`
`]]]]