Help using CGSmartImage - i should know, but don't.
Posted: Sun Jan 04, 2015 3:26 am
Hi,
Another silly question, this time about using CGSmartImage in my templates.
Previously I have manually resized images prior to uploading and have been happy (enough) for thumbnails to be compressed by the browser, as i figured the images would then be cached and the detail page load quicker.
However i'd like to start using CGSmartImage as expecting clients to resize accurately is too much.
My summary template contains
How do I code it so that I'm adding something like {CGSmartImage notag="1" filter_croptofit="267,400,c"} to my template?
Thanks for any help - i realise i should know this stuff - but i don't.
Cheers,
Paul
Another silly question, this time about using CGSmartImage in my templates.
Previously I have manually resized images prior to uploading and have been happy (enough) for thumbnails to be compressed by the browser, as i figured the images would then be cached and the detail page load quicker.
However i'd like to start using CGSmartImage as expecting clients to resize accurately is too much.
My summary template contains
Code: Select all
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
<a href="{$entry->detail_url}" title="{$entry->title|cms_escape:htmlall}">{eval var=$field->value}</a>
{/if}
Thanks for any help - i realise i should know this stuff - but i don't.
Cheers,
Paul