1
dunkin
Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 1:00

  • dunkin

  • Just popping in

  • Posts: 47

  • Since: 2005/3/15


using the mypage module which allows you to add a static page with blocks to xoops.

I made 3 blank pages

mypage1 with submenu to mypage2 and mypage3

but when viewing mypage2 or mypage3... the submenu disappears under mypage1 in the main menu... how can I make it stay there?!?

You can see what I mean here - Http://www.tietrek.info

follow the 'test' link

LINKS ON TEST1

$modversion['hasMain'] = 1;//0 to remove link from main menu
$modversion['sub'][1]['name'] = _MI_MYPAGE_SMNAME1;//define in language/english/global.php
$modversion['sub'][1]['url'] = "../../modules/test2/";
$modversion['sub'][2]['name'] = _MI_MYPAGE_SMNAME2;//define in language/english/global.php
$modversion['sub'][2]['url'] = "../../modules/test3/";

LINKS ON TEST2 & TEST3

$modversion['hasMain'] = 1;//0 to remove link from main menu
//$modversion['sub'][1]['name'] = _MI_MYPAGE_SMNAME1;//define in language/english/global.php
//$modversion['sub'][1]['url'] = "../../modules/test2/";
//$modversion['sub'][2]['name'] = _MI_MYPAGE_SMNAME2;//define in language/english/global.php
//$modversion['sub'][2]['url'] = "../../modules/test3/";

2
Dave_L
Re: Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 2:34

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


$modversion['hasMain'] = 1;//0 to remove link from main menu
[color=ff0000]//[/color]$modversion['sub'][1]['name'] = _MI_MYPAGE_SMNAME1;//define in language/english/global.php
[color=ff0000]//[/color]$modversion['sub'][1]['url'] = "../../modules/test2/";
[color=ff0000]//[/color]$modversion['sub'][2]['name'] = _MI_MYPAGE_SMNAME2;//define in language/english/global.php
[color=ff0000]//[/color]$modversion['sub'][2]['url'] = "../../modules/test3/";


Do you intentionally have those lines commented-out?

3
dunkin
Re: Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 3:09

  • dunkin

  • Just popping in

  • Posts: 47

  • Since: 2005/3/15


on the second and third page yes... but commented out or not... the submenu disappears as soon as you click on one of the submenus

4
tjnemez
Re: Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 3:37

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


it looks like you have made 3 modules, not one with 2 sub menu items. is there a reason for this? looks like you are actually calling another module from each sub menu item.

5
dunkin
Re: Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 4:19

  • dunkin

  • Just popping in

  • Posts: 47

  • Since: 2005/3/15


I am basically calling other modules from the submenu....

mypage is like tinycontent... allows you to insert a blank page where you can put static content, or if you give it main priveleges... blocks... http://www.hippyspace.com in the 'my recipes' section is where I use it currently, and others on that page as well...

what I want to do... is take that module and put other pages in a tree under it... so like to display in the menu...

About Me (main link on page) - with block content
-My Recipes (submenu from 'about me' with block content
-My Projects - submenu from 'about me'

etc etc etc... BUT when I set it up to appear that way...
if you click on one of the submenu's in the menu... it takes you to the module page... and all the submenu's disappear.

I want them to stay there... as they do in like 'mydownloads' or 'weblinks' modules. I've searched that code... can't find out how it's done.

6
rowdie
Re: Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 4:51

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


Quote:

dunkin wrote:
I am basically calling other modules from the submenu....


Exactly... and that's the problem. You should be calling other pages, not other modules.

You need one directory with three pages. Let's call them index.php, test2.php and test3.php - you can call them what you want

The xoops_version.php file should have this in it...
$modversion['hasMain'] = 1;//0 to remove link from main menu
$modversion['sub'][1]['name'] = _MI_MYPAGE_SMNAME1;//define in language/english/global.php
$modversion['sub'][1]['url'] = "test2.php";
$modversion['sub'][2]['name'] = _MI_MYPAGE_SMNAME2;//define in language/english/global.php
$modversion['sub'][2]['url'] = "test3.php";

then you'll get your submenu listings.

7
dunkin
Re: Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 4:59

  • dunkin

  • Just popping in

  • Posts: 47

  • Since: 2005/3/15


I just did that very thing and it worked perfectly.... but now my problem is... how do I add blocks to those individual pages... as they do not appear in the blocks admin?

8
tjnemez
Re: Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 5:05

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


hey dunkin,

you can download a simple test module from my site. it does not have blocks though. you can add them to block directory included and then edit the xoops_version.php:

http://www.dcdezines.ca/wfdownloads-singlefile.cid-3-lid-5.htm

9
dunkin
Re: Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 5:12

  • dunkin

  • Just popping in

  • Posts: 47

  • Since: 2005/3/15


download link dies after disclaimer

The requested URL /visit.php was not found on this server.

you can attach via email if possible...

dunk717@gmail.com

10
tjnemez
Re: Submenu disappearing with mypage... menu help wanted!
  • 2005/3/18 5:21

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


i just installed simplified urls and some modules just do not work well with it.

if you need assistance with blocks, let me know. study the stucture of other modules.

anyway go here and try again:
http://www.dcdezines.ca/modules/wfdownloads/singlefile.php?cid=3&lid=5

Login

Who's Online

122 user(s) are online (44 user(s) are browsing Support Forums)


Members: 0


Guests: 122


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