1
maxima
Sub Menu creation question - Not staying on page
  • 2006/10/3 2:32

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I created 4 custom modules using the following in the index.php of each folder
Quote:
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>include(XOOPS_ROOT_PATH."/footer.php");

?>


and I want custom1 to be the main menu link and the others be sub menus. I have the following in module custom1 xoops_version.php
Quote:
// Menu/Sub Menu
$modversion['hasMain'] = 1;//make 0 to not have this appear in main menu
$modversion['sub'][1]['name'] =Sub Name;
$modversion['sub'][1]['url'] = "../custom3/";


The other modules hasMain is set to 0. It works fine on the page and the submenus display as should and each returns it's linked page but.... when a sub menu is clicked and page displayed, the submenus go away.

I want the menus to remain as other modules' sub menus work. What should I do to make them stay.

I know about Multimenu and WFchannel but they won't achieve what I want.

2
maxima
Re: Sub Menu creation question - Not staying on page
  • 2006/10/3 14:38

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


Mypage module is used for the custom modules

3
skenow
Re: Sub Menu creation question - Not staying on page
  • 2006/10/3 14:46

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Submenu items only display when the main module is active. Clicking on your submenus actually takes you to another module (and another directory). I'm not sure how you're going to get what you are looking for with your current module setup.

4
maxima
Re: Sub Menu creation question - Not staying on page
  • 2006/10/5 21:17

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I tried adding the sub page to the mypage module directory using the index file in the folder (renamed) with the info between the php tags, but when the sub link is clicked the index page which is already displayed, stays.

Login

Who's Online

202 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

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

Latest GitHub Commits