[Solved]{if description} in template needed - not working

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

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

Post 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.
stopsatgreen
Power Poster
Power Poster
Posts: 322
Joined: Sat Feb 04, 2006 1:24 am

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

Post by stopsatgreen »

No problem. You need to modify the original post to add [Solved] to it, rather than the latest.
Post Reply

Return to “CMSMS Core”