1
domineaux
Blocks - I want to stack them without titles & header bars
  • 2007/1/25 0:49

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


IS there a mod to allow creation of blocks that you can just stack in different block positions on site, which do not have headers, title bars etc. I just want to stack a bunch of odd stuff around on different pages very space efficent.

I like the idea of using blocks that I can create code and modify when I need. This way I don't modify theme files. Also, I'd like to just modify a block or replace it as I need.

----------------------

2
WarDick
Re: Blocks - I want to stack them without titles & header bars
  • 2007/1/25 8:34

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Check out this thread.

To remove the block title.

You can add the regex expression in any column you want to have control of the block titles.
Urging XOOPS to be the Best It Can Be.
Richard......

3
davidl2
Re: Blocks - I want to stack them without titles & header bars
  • 2007/1/25 12:22

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Thanks for finding this ... my colleague and I use a similar trick in a site we're developing at the moment as well

4
Peekay
Re: Blocks - I want to stack them without titles & header bars
  • 2007/1/25 12:23

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


To remove block headers, see if your theme.html (or linked block.html) has a CSS class for the header, e.g.

<!-- Start left blocks loop -->
      <{foreach 
item=block from=$xoops_lblocks}> 
            
      <
div class="blockTitle"><{$block.title}></div>
      <
div class="blockContent"><{$block.content}></div>
      <{/foreach}> 
      <!-- 
End left blocks loop -->

Then set the CSS to remove the header, e.g.
.blockTitle 
height0px
margin0
padding0
backgroundtransparent
}

You could also use 'display: none'. Or, just remove the block title entry from the theme.
A thread is for life. Not just for Christmas.

5
domineaux
Re: Blocks - I want to stack them without titles & header bars
  • 2007/1/25 16:38

  • domineaux

  • Quite a regular

  • Posts: 389

  • Since: 2002/9/29


Thanks this is just what I needed. Great responses.

Login

Who's Online

210 user(s) are online (143 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

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

Latest GitHub Commits