Re: Code for hiding block titles

Posted by Will on 1203090444
change:
<{foreach item=block from=$xoBlocks.canvas_left}><{includeq file="$theme_name/theme_blockleft.html"}> <br /> <{/foreach}>


To:
<{foreach item=block from=$xoBlocks.canvas_left}> <{if $block.title|regex_replace:"/.*none*/":"none" ne "none"}> <div class="<{cycle values="blockTitle"}>"> <{$block.title}></div><{/if}><div class="blockContent"> <{$block.content}></div> <{/foreach}>

clear templates, should work the same.

This Post was from: https://www.impresscms.org/iforum/viewtopic.php?topic_id=1079&post_id=9721