[solved] check custom content block content

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
AmandaBTO
Forum Members
Forum Members
Posts: 51
Joined: Thu Aug 09, 2007 2:40 pm

[solved] check custom content block content

Post 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
Last edited by AmandaBTO on Tue Jun 24, 2008 4:00 pm, edited 1 time in total.
AmandaBTO
Forum Members
Forum Members
Posts: 51
Joined: Thu Aug 09, 2007 2:40 pm

Re: check custom content block content

Post by AmandaBTO »

yay forum's

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

and then later

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

sexy
Post Reply

Return to “Layout and Design (CSS & HTML)”