Page 1 of 1

[solved] check custom content block content

Posted: Tue Jun 24, 2008 3:49 pm
by AmandaBTO
I've got a couple of custom content blocks in my template - 1 for the title of the side bar content and another to hold the actual side bar content.  The reason I've got it split in 2 is that I do some fancy font/text transform to the title

The problem is that if that page doesn't need/want any side bar, the fancy transform puts an 'X' in the header but only in ie (of course)

I've been playing around with assigns but can't quite get it.  Is there anyway I can check the value of a custom content block and if it's it's not "" then transform it?

thanks!
manda

Re: check custom content block content

Posted: Tue Jun 24, 2008 3:59 pm
by AmandaBTO
yay forum's

{capture assign='captured_content'}{content block=...}{/capture}

and then later

{if $captured_content != ""}
...
{/if}

sexy