1
luciorota
Blocks without title (but titled)
  • 2010/7/23 14:47

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


An interesting way to have blocks without title (but titled)

<{if (($block.title|count_characters 0) && (($block.title|truncate:2:"":true) != '//'))}>
    <{
$block.title}>
    <{
$block.content}>
<{else}>
    <{
$block.content}>
<{/if}>


And use // before blocks title in blocks admin menu:

This way you can have titled blocks (useful in admin menu) with no title in front size...

Try it!

Thanks Smarty!
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321

2
Peekay
Re: Blocks without title (but titled)
  • 2010/7/23 15:11

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Or, just put

.blockTitle {displaynone}

in style.css

-- Edit --

Sorry, I see now. So you can have some blocks with titles and some without. Nice idea.
A thread is for life. Not just for Christmas.

Login

Who's Online

346 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 346


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