1
cdddm
Facing issues with showing block in modules
  • 2007/4/1 11:32

  • cdddm

  • Just popping in

  • Posts: 3

  • Since: 2007/3/25


I am on 2.0.16 version.

Recently I had installed XPress and XoopsGallery modules. Both of them have bunnch of blocks. I am facing issues (or rather not able to understand) how can I prevent one module's blocks to show up in another module's page. If I go to Blocks admin page and choose XPrss or Xgallery in the drop-down, it shows list of only System blocks. So in no way I can tell XOOPS to show a module A's block in the module B. How do I achieve that?

Anyway to figure out what query XOOPS fires to get the list of blocks to show, I ran it in debug mode. Following is the peculiar behavior I have come across:

1) Top page: Shows System Menu, XPress blocks and Xgallery blocks

SELECT b.* FROM xoops_newblocks b, xoops_block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id IN (0,9,-1) AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,12,56,28,29,16,17,18,57,55,58,59,30,60,62,61) ORDER BY b.weight,b.bid

2) XPress Module: Shows System Menu, XPress blocks and Xgallery blocks

SELECT b.* FROM xoops_newblocks b, xoops_block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id IN (0,9,-1) AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,12,56,28,29,16,17,18,57,55,58,59,30,60,62,61) ORDER BY b.weight,b.bid

3) XGallery module: Shows only System menu!! (not even gallery blocks)

SELECT b.* FROM xoops_newblocks b, xoops_block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id IN (0,10) AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,12,56,28,29,16,17,18,57,55,58,59,30,60,62,61) ORDER BY b.weight,b.bid

My XGallery's module ID I believe is 10, but in xoops_block_module_link table, there is no 10 (and looks like gallery blocks have been assigned with -1 or 9 module id)!

Please help.

[-------------------------------------------------------]

Ok figured it out, I had to do an edit of the block and choose the modules where I want to show it. Excuse me for my language; this is mother of all configuration capabilities! I have used one or two other CMSs but they were never this flexible. Thanks for making such a great CMS.

Login

Who's Online

191 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

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

Latest GitHub Commits