11
davidl2
Re: block title
  • 2006/8/16 14:35

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Looks like that should do the job nicely

12
Herko
Re: block title
  • 2006/8/24 14:43

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


I still don't get why you hardcode the block titles in the template files.

If I don't want a block title, I empty the block title in the block admin, and then it won't show. And to hide the block title container I just use
<{if $block.title}><h2><{$block.title}>h2><{/if}>

This will show the block title if it has a value in it, and otherwise, it won't.

Simple!

Herko

13
davidl2
Re: block title
  • 2006/8/24 14:46

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Yes, that's true - but you can use a variation of that code to use a different css class for certain blocks, for example.

14
Francesca
Re: block title
  • 2006/8/24 14:50

  • Francesca

  • Just popping in

  • Posts: 9

  • Since: 2006/5/14


Quote:

Herko Coomans wrote:
I still don't get why you hardcode the block titles in the template files.

If I don't want a block title, I empty the block title in the block admin, and then it won't show.


As I said in previous post, I don't want blocks with empty titles in the admin. It's more difficoult to recognize them..

15
davidl2
Re: block title
  • 2006/8/24 14:54

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


that makes sense

Login

Who's Online

246 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 246


more...

Donat-O-Meter

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

Latest GitHub Commits