1
maxima
Can I add numbering to block listing?
  • 2006/10/23 3:03

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


My blocks are a challenge to identify by moderators and I'd like to point them to specific block numbers. I want it to flow in numerical order like a text editor would show line numbers.

How can I get this done?

Using 2.0.15

2
ladon
Re: Can I add numbering to block listing?
  • 2006/10/23 6:07

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


You could try something like this, using smarty, in your theme.html:

{$count == 0}>
<{foreach 
item=block from=$xoops_ccblocks}>
  <{
$count =+}>
  <{include 
file="default/theme_blockcenter_c.html"}>
<{/foreach}>


And then use the $count varaible:
<div style="padding: 5px;">
  <
fieldset>
    <
legend class="blockTitle"><{$block.title}> # <{$count}></legend>
    
<div class="blockContent"><{$block.content}></div>
  </
fieldset>
</
div>
I am the BEST.......... at overstating things! - Resized Image

3
maxima
Re: Can I add numbering to block listing?
  • 2006/10/24 14:18

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


ladon thanks for the reply. I should have specified that I want the numbering to be in the administration block listing.

4
maxima
Re: Can I add numbering to block listing?
  • 2006/10/24 14:20

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


ladon thanks for the reply. I should have specified that I want the numbering to be in the administration block listing.

5
maxima
Re: Can I add numbering to block listing?
  • 2006/11/4 3:00

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


So this is still a big challenge. My site has amassed lotsa blocks on many pages and some blocks don't have titles. It is now tediuos to scan through to find a block for editing.

If I could add numbers to each block in the blocksadmin it would be so much easier. Or if I could hide the function blocks ie: system, newbb, news etc then that would ease the clutter.

So is there a way to add numbers? Has anyone devised a method of 'quick find'?

6
tempel33
Re: Can I add numbering to block listing?
  • 2006/11/4 13:23

  • tempel33

  • Just popping in

  • Posts: 47

  • Since: 2004/11/5


Did u try Gijoe's blocksadmin?

7
maxima
Re: Can I add numbering to block listing?
  • 2006/11/18 2:15

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I tried the block admin module and it does arrange the blocks nicely but it is not up to date with XOOPS additional bottom blocks so the don't show. Is there a newer version somewhere?

Login

Who's Online

71 user(s) are online (39 user(s) are browsing Support Forums)


Members: 0


Guests: 71


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