1
angelomorto
Filter Blocks by Category

Hello everybody!
I have many sites where I have to manage many blocks, it would be helpful if i filter blocks by category.
can you do?

2
angelomorto
Re: Filter Blocks by Category

I began the hard work!
I arrived at this step...
(view post onhttp://www.xoopsitalia.org/forum/p/69328/re-filtrare-i-blocchi-per-categoria.html )
Now I have two problems ...

The first problem is to make dynamically the following code...
in modules/system/admin/blocksadmin/main.php
// Hack by HakaIT (block category filter) START  
$sel_cat = new XoopsFormSelect_AM_SYSTEM_BLOCKS_CATEGORY'selcat'$selcat );  
$sel_cat->setExtra"onchange='submit()'" );  
$sel_cat->addOption( -1_AM_SYSTEM_BLOCKS_TYPES );  
$sel_cat->addOption0'Cat1' );  
$sel_cat->addOption1'Cat2' );  
$filterform->addElement$sel_cat ); 
// Hack by HakaIT (block category filter) END


In reality, the options must be dynamic, so you have to query the new table xoops_block_category.

The second problem is to create the Category Manager page.

Tips????

3
angelomorto
Re: Filter Blocks by Category (progress)


4
angelomorto
Re: Filter Blocks by Category


Login

Who's Online

231 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 231


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