Page 1 of 1

Banners Module and CGSmartImage

Posted: Tue May 07, 2013 12:15 am
by webform
Is it not possible to use CGSmartImage with the Banners Module?

If i try to use CGSmartImage in the Category Template it's just outputting the letter u in {$banner.clickthrough}, {$banner.text|default:''} and {$banner.name} even if the URL field is empty or not.

My template:

Code: Select all

{* banner category template *}
{capture assign='banner'}uploads/images/header/{$banner.image}{/capture}
{capture assign='bannertxt'}{$banner.text|default:''}{/capture}
{strip}
{if isset($banner.clickthrough)}
<a rel="nofollow" href="{$banner.clickthrough}" title="{$banner.name}">
{CGSmartImage src=$banner filter_croptofit='950,180' alt=$bannertxt}
</a>
{else}
{* no url found, just displaying an image *}
{CGSmartImage src=$banner filter_croptofit='950,180' alt=$bannertxt}
{/if}
{/strip}