1
karedokx
create a custom submenu in a module
  • 2005/3/8 17:42

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


i need to add a custom submenu for a module (linking to a certain page in another module).

i edit the xoops_version.php file of the module and add the following commands:
$modversion['sub'][1]['name'] = _MI_SS_SUB_SMNAME0;
$modversion['sub'][1]['url'] = "http://linktootherpage";

$modversion['sub'][2]['name'] = _MI_SS_SUB_SMNAME1;
$modversion['sub'][2]['url'] = "submit.php?op=add";

however seems that the submenu link is made relative to the module directory. for example:

http://localhost/xoops/html/modules/smartsection/http://linktootherpage

can you help, what i want to achieve is by clicking on the menu i want to go to http://linktootherpage?

thanks.

2
Mithrandir
Re: create a custom submenu in a module

Wouldn't it be better to use a menu module such as MultiMenu?
Submenu items are supposed to be in the module and therefore expected to be relative.

Login

Who's Online

218 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 218


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