Banners Module and CGSmartImage

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
webform
Power Poster
Power Poster
Posts: 524
Joined: Sat Nov 25, 2006 3:39 pm

Banners Module and CGSmartImage

Post 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}
Post Reply

Return to “Modules/Add-Ons”