1
jimkarvo
Auto-hide blank blocks
  • 2007/3/2 20:52

  • jimkarvo

  • Not too shy to talk

  • Posts: 169

  • Since: 2005/9/19


Hello,

I have a question for you. I want to auto-hide a block when its content is blank!

Can I do that?

Thanks,

JimKarvo
www.pc4allgr.com - Greek community for PCs

PC4ALL Admins' Team!

2
LiliVG
Re: Auto-hide blank blocks
  • 2007/3/3 4:32

  • LiliVG

  • Just popping in

  • Posts: 65

  • Since: 2005/12/25


could you try an if statement in the block template file? for example:

<{if $block.content}>
<div style="padding: 5px;">
<fieldset>
<legend class="blockTitle"><{$block.title}></legend>
<div class="blockContent"><{$block.content}></div>
</fieldset>
</div>
<{/if}>

?

I don't know if it would work for sure, but that would be my first shot.

Login

Who's Online

136 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 136


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits