Page 1 of 1

Re: {if description} in template needed - not working

Posted: Wed Jul 30, 2008 7:12 am
by stopsatgreen
This is off the top of my head, but have you tried:

Code: Select all

{capture assign='hazcontent'}{description|count_characters}{/capture}
{if $hazcontent > 0}
	{capture assign='hazdescription'}{description}{/capture}
	{cms_module module="TruetypeText" style="slogan" text=$hazdescription}
{else}
	{cms_module module="TruetypeText" style="slogan" text="default something"}
{/if}
I haven't tried it, and there may be a better solution, but give it a try.

Re: {if description} in template needed - not working

Posted: Wed Jul 30, 2008 11:04 pm
by stopsatgreen
No problem. You need to modify the original post to add [Solved] to it, rather than the latest.