| Re: How do I hide the title of a custom block? |
| by tzvook on 2009/12/23 21:24:31 Quote:
It's not wrong , It's an old post, there's a later post in the forums with an explanation about changes in the "truncate" thing with UTF ( the smarty "truncate" is not working with UTF-8 ) ... all my sits are still using this code ![]() Long time .... |
| Re: How do I hide the title of a custom block? |
| by kris_fr on 2009/12/19 1:45:14 le="color: #000000"><?php <{if $block.title}> <div class="xo-blocktitle"><{$block.title}></div> <{/if}> <div class="xo-blockcontent"><{$block.content}></div>
|
| Re: How do I hide the title of a custom block? |
| by demian on 2009/12/19 1:18:28 the cool code by tzvook above is wrong.. here is the correct one i tried it myself..hope it helps .. le="color: #000000"><?php <{if $block.title|truncate:9:"" == "no-header"}> <div class="blockTitle"></div> <{elseif $block.title != ""}> <div class="blockTitle"><{$block.title}></div><{/if}> <div style="padding-bottom: 5px;" class="blockContent"><{$block.content}></div> tq..this is awesome |
| Re: How do I hide the title of a custom block? |
| by nachenko on 2007/6/21 10:20:11 tzvook's solution is the sophisticated version of what I suggested, and it's the best solution you'll find. I strongly recommend that. |
| Re: How do I hide the title of a custom block? |
| by tzvook on 2007/6/21 9:24:42 There is simplyer solution: you can add this line to your theme files le="color: #000000"><?php <{if $block.title|truncate:9:"" == "no-header"}> and each block name that will start with "no-header" won't have a title my blocks at the theme files looks like this ( you can do it to all your blocks locations - right, center, left and so ... ) le="color: #000000"><?php <{if $block.title|truncate:9:"" == "no-header"}> <div class="blockTitle"><{$block.title}></div> <{elseif $block.title != ""}> <div class="blockTitle"><{$block.title}></div><{/if}> <div style="padding-bottom: 5px;" class="blockContent"><{$block.content}></div>
|