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

  • luciorota

  • Module Developer

  • Posts: 219

  • 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 {display: none}
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.