1
corne
Module submenu on index.php
  • 2005/1/20 9:28

  • corne

  • Just popping in

  • Posts: 24

  • Since: 2005/1/12


How can I include the submenu of a specific module on the index page of the module?

2
Antoine
Re: Module submenu on index.php
  • 2005/1/20 9:39

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Either by making the module visible to the group you want it to see. Further you need to edit the xoops_version.php file accordingly:

Quote:

// Menu
$modversion['hasMain'] = 1;
$modversion['sub'][1]['name'] = _MI_MYMOD_SMNAME1;
$modversion['sub'][1]['url'] = "mysubpage1.php";
$modversion['sub'][2]['name'] = _MI_MYMOD_SMNAME2;
$modversion['sub'][2]['url'] = "mysubpage2.php";


Or, you could just sortof hard-code a few links into your theme's template.

Unless you literally mean your module's index.php file in which case you should link to that other module from your code. Would be good practice to check wether that other module is installed in the first place if you are planning to publish the module so other people will use it.

3
corne
Re: Module submenu on index.php
  • 2005/1/20 10:14

  • corne

  • Just popping in

  • Posts: 24

  • Since: 2005/1/12


Quote:

Antoine wrote:

Unless you literally mean your module's index.php file in which case you should link to that other module from your code. Would be good practice to check wether that other module is installed in the first place if you are planning to publish the module so other people will use it.


That's what I want, the submenu of a module literally in the index.php

4
Antoine
Re: Module submenu on index.php
  • 2005/1/20 22:33

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Well then I guess you could just edit the template file of the module you want the link to appear in and just add an anchor to XOOPS_URL."/modules/your_module/your_page.php"?

Login

Who's Online

170 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 170


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