1
Xtracted
Block weight settings..
  • 2005/1/9 20:19

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


I have a problem with the center block weight settings.
By default, all single center blocks are sorted above blocks that are aligned with a center-right and a center-left block in the center block alignment.. (this sounds probably weird but english isnt my first language and its pretty hard to explain this, I hope you understand..)

I want a row with a left and right center block at the top of my page, above the center-center blocks.. any suggestions?

2
irmtfan
Re: Block weight settings..
  • 2005/1/9 21:26

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


you can change that in theme.html
the original is something like this:
<tr>
<
td class="centerblock" colspan="2" width="100%">
                <!-- 
Start center-center blocks loop --><{foreach item=block from=$xoops_ccblocks}>
                <
div class="blockTitle">
                    <{
$block.title}></div>
                <
div class="blockContent">
                    <{
$block.content}></div>
                <{/foreach}>
                <!-- 
End center-center blocks loop --></td>
            </
tr>
            <
tr>
                <
td width="50%">
                <!-- 
Start center-left blocks loop --><{foreach item=block from=$xoops_clblocks}>
                <
div class="blockTitle">
                    <{
$block.title}></div>
                <
div class="blockContent">
                    <{
$block.content}></div>
                <{/foreach}>
                <!-- 
End center-left blocks loop --></td>
                <
td width="50%">
                <!-- 
Start center-right blocks loop --><{foreach item=block from=$xoops_crblocks}>
                <
div class="blockTitle">
                    <{
$block.title}></div>
                <
div class="blockContent">
                    <{
$block.content}></div>
                <{/foreach}>
                <!-- 
End center-right blocks loop -->
                <
p>&nbsp;</p>
                </
td>
            </
tr>

change it with:
<tr>
<
td width="50%">
                <!-- 
Start center-left blocks loop --><{foreach item=block from=$xoops_clblocks}>
                <
div class="blockTitle">
                    <{
$block.title}></div>
                <
div class="blockContent">
                    <{
$block.content}></div>
                <{/foreach}>
                <!-- 
End center-left blocks loop --></td>
                <
td width="50%">
                <!-- 
Start center-right blocks loop --><{foreach item=block from=$xoops_crblocks}>
                <
div class="blockTitle">
                    <{
$block.title}></div>
                <
div class="blockContent">
                    <{
$block.content}></div>
                <{/foreach}>
                <!-- 
End center-right blocks loop -->
                <
p>&nbsp;</p>
                </
td>
            </
tr>
            <
tr>
                <
td class="centerblock" colspan="2" width="100%">
                <!-- 
Start center-center blocks loop --><{foreach item=block from=$xoops_ccblocks}>
                <
div class="blockTitle">
                    <{
$block.title}></div>
                <
div class="blockContent">
                    <{
$block.content}></div>
                <{/foreach}>
                <!-- 
End center-center blocks loop --></td>
            </
tr>

in short:
open your theme.html with frontpage and put center-left and center-right blocks above center-center block

3
Xtracted
Re: Block weight settings..
  • 2005/1/9 22:07

  • Xtracted

  • Not too shy to talk

  • Posts: 138

  • Since: 2004/1/7 2


Ah, right.. I should have tought about that.. ack.. ohwell, thanks

Login

Who's Online

177 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

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

Latest GitHub Commits