Re: Code for hiding block titles

Posted by dconn6 on 1210019520
thanks for the tip. I started another topic and nanchenko suggests exactly why you have said. I was going down the wrong track trying to use smarty functions for something that really is dynamic and needing javascript and css. For example the html for the left blocks contains this line

<td width="98%" style="background-image: url(<{$xoops_imageurl}>images/lb_tc.gif);"><div class="blockTitle"><{$block.title}></div></td>

If javascript can recognise smarty variables like {$block.title} then it will be relatively easy to write a script that either hides or shows a block depending on this smarty variable.

This is what you were suggesting right?

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