1
moisty70
Adding a block to a custom module
  • 2007/8/28 11:56

  • moisty70

  • Just popping in

  • Posts: 21

  • Since: 2007/8/24


Hello, I have finished my first module, everything ok.
Now I want to add a block to this module.
I change the xoops_config.php adding this lines
// Blocks
$modversion['blocks'][1]['file'] = "promo_total_rpps.php";
$modversion['blocks'][1]['name'] = 'Name block total rpps';
$modversion['blocks'][1]['description'] = "Desc block total rpps";
$modversion['blocks'][1]['template'] = promo_total_rpps.html";

Also I create the php and html files at blocks and templates/blocks

But the block is not created when I install the module.

Any other things I should do?

Also what goes on $modversion['blocks'][1]['options']
I cannot find any documentation about this.

Thanks.

2
moisty70
Re: Adding a block to a custom module
  • 2007/8/28 12:38

  • moisty70

  • Just popping in

  • Posts: 21

  • Since: 2007/8/24


I needed one more

$modversion['blocks'][1]['show_func'] = "promo_total_rpps_show";

Sorry

Login

Who's Online

127 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 127


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