Submenus, unable to display simple html pages

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
tomandthecats
Beginner
Beginner
Posts: 3
Joined: Mon Sep 02, 2002 4:46 pm
Contact:

Submenus, unable to display simple html pages

Post by tomandthecats »

Greetings,
I am a new user. I like this menuing system very much. My question probably has a very simple answer. I have configured a menu on the left side of my pages. I have many submenus. When I put the location of a page I want to open up in the "URL" space, I get a page not found.
Example:
addmenu(menu=["facility",,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Entrance","facility/entrance.html",,,1

Is this the correct location for the page locator?

After further research, I'm finding that when I am in a nested page with the menu attached and I try and access a different page, the locator is telling me that it's trying to open up the page from the current nested location. Is there a way to configure the links to link back to the original location of the menu_array.js file?

Thanks
Tomcat
User avatar
Scott
Advanced
Advanced
Posts: 26
Joined: Thu Aug 08, 2002 10:03 am
Location: U.K.

Post by Scott »

Almost there you just need to put a / before the subfolder..

eg

addmenu(menu=["facility",,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Entrance","/facility/entrance.html",,,1


Good Luck
Hardi
Beginner
Beginner
Posts: 6
Joined: Wed Sep 04, 2002 10:29 am
Location: Wädenswil (ZH) Switzerland

Post by Hardi »

Hi Scott,

I've still got the same problem, i can't make Absolute links because i don't know the exact location i'm saving the whole webpage in.

The slash thing does'nt work (still got the error), is there a option that tells the _array.js file to start from the Root???


Thanks,

Hardowin
User avatar
Scott
Advanced
Advanced
Posts: 26
Joined: Thu Aug 08, 2002 10:03 am
Location: U.K.

Post by Scott »

OK..

the way I use this menu is..

[]- Parent folder
- index.htm
-[] Javascript folder (containing mmenu.js and menu_array.js
-[] Home (example folder 1)
-[] Links (example folder 2)

index.htm is a browser detection/redirection script that redirect to a page home.htm in the home folder, it does not display anything so doesn't call the menu.

The first page displayed is home.htm contained within the home folder. From here all other pages are accessible by the milonic menu. To get to a page held in the links folder (links.htm for example) the URL would be ../links/links.htm. To get to another page within the home subfolder (example.htm) the link would be ../home/example.htm.

Basically the ../ tells the browser to go back up a level and then look for the correct subfolder. As this could be accessed from any of the subfolders it's important to always use the ../subfoldername/filename format.

Hope this helps.
Scott
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Actually its quite easy. I had the same problem as I am maintaining many pages that have the menu and as I add pages, they may be located in many different places. But depending on where your viewing the menu, a relative link would not work, hence the reason its called a relative link.

The work around to this is in the URL section of your menu item, instead of putting "/secondfolder/yourpage.htm", put "http://www.yourdomain.com/firstfolder/s ... urpage.htm". This will immediately fix your problem as where ever you are when you click the link, it will always be absolute and there is no guesswork. :idea:
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Hardi
Beginner
Beginner
Posts: 6
Joined: Wed Sep 04, 2002 10:29 am
Location: Wädenswil (ZH) Switzerland

Post by Hardi »

Hi Hergio,

That with the Absolute link works fine...

But i'm making a page for the Intranet at work...

And sometimes the locations will change (Drive Nr, Main Folder) then you habe to change all the absolute Links...
Also when i rename the Url from my Homepage (if i make a page for the Internet)

i.e: http://www.homepage.swissonline/firstname

to

http://www.homepage.swissonline/secondname

That's why i want to use relative links.....

Hardowin :roll:
timmyboy
Advanced
Advanced
Posts: 15
Joined: Wed Aug 28, 2002 4:23 pm

Post by timmyboy »

In the project I'm working on I have two copies of the site on my machine both a little different because they were prepared for different servers, and one on a shared drive for the customer to review. All of the pages have both a top and side menu, the top menu being consistant site-wide and the side menu being specific to that particular section of the site.

I ran into the same issue of moving the site from place to place (to place . . . ). The side menus were fine because they were relative to the page but the top menu had to work over the whole site no matter where the page was located.

Because of this I started to keep the path name used at the very top of the page (using // to comment it out) When I need to change directories I use good ol' Notpad to go in, do a "Find and Replace" and that takes care of the change in a matter of seconds.

This has worked for me at least as a quick fix, if you find a better way please post it, but hopefully this will save you some work in the mean time.

~ tim <><
timmyboy
Advanced
Advanced
Posts: 15
Joined: Wed Aug 28, 2002 4:23 pm

Post by timmyboy »

In the project I'm working on I have two copies of the site on my machine both a little different because they were prepared for different servers, and one on a shared drive for the customer to review. All of the pages have both a top and side menu, the top menu being consistant site-wide and the side menu being specific to that particular section of the site.

I ran into the same issue of moving the site from place to place (to place . . . ). The side menus were fine because they were relative to the page but the top menu had to work over the whole site no matter where the page was located.

Because of this I started to keep the path name used at the very top of the page (using // to comment it out) When I need to change directories I use good ol' Notpad to go in, do a "Find and Replace" and that takes care of the change in a matter of seconds.

This has worked for me at least as a quick fix, if you find a better way please post it, but hopefully this will save you some work in the mean time.

~ tim <><
Post Reply