1
ronhab
Hey Blockhead
  • 2005/1/24 9:16

  • ronhab

  • Friend of XOOPS

  • Posts: 160

  • Since: 2003/4/27


Is there any way to make a block but not have it show the "block title" above it? I am trying to reduce the "blocky" look to my site.

2
WarDick
Re: Hey Blockhead
  • 2005/1/24 9:54

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


[quote] <{if $block.title|regex_replace:"/.*none/":"none" ne "none"}>
<div class="blockTitle"><{$block.title}></div>
<{/if}>[/quote}

Insert this code in the left block loop for instance.
Simply name the block as block_name none.

Add loop to each block loop you want to have control over.

That's it.

3
carnuke
Re: Hey Blockhead
  • 2005/1/24 14:15

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Interesting solution wardick, but won't that make all blocks from that template titleless?

I have simply left out the block title for some of my blocks, although it does leave a blank space and makes it harder to find them in admin! The ID is still assigened, so it does not lead to any operation problems.

4
karedokx
Re: Hey Blockhead
  • 2005/1/24 15:05

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


i used to use the following command:
<{if $block.title!=""}>
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>
<{else}>
<div class="blockContent"><{$block.content}></div>
<{/if}>

as carnuke said, it has made it difficult in identifying what block is that.

now i have implemented your recommendation, wardick. smart one!

note: will this have any effect in term of performance? don't think so, do it?

5
WarDick
Re: Hey Blockhead
  • 2005/1/24 15:29

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


@carnuke
No only the ones that end in "none" or what ever the regex match. It works perfectly for me.

6
ronhab
Re: Hey Blockhead
  • 2005/1/27 15:09

  • ronhab

  • Friend of XOOPS

  • Posts: 160

  • Since: 2003/4/27


Works like a charm after fiddling with my theme a bit. Thank you very much for this.

Login

Who's Online

179 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 179


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