Set URLs

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
Two5kid
Beginner
Beginner
Posts: 5
Joined: Thu Aug 08, 2002 6:43 pm
Contact:

Set URLs

Post by Two5kid »

Hi,

I have one question. Can we set the base URLs for all the links?

For example,
My base URL would be http://kuanyew.tripod.com/
Do I need to insert the whole URL into every menu string?
As I have a couple of Subdirectories too.

Thanks
Any Dream Worth Having,
Is A Dream Worth Fighting For!
Two5kid
Beginner
Beginner
Posts: 5
Joined: Thu Aug 08, 2002 6:43 pm
Contact:

Rephrase

Post by Two5kid »

I think I need to rephrase my question as no one is answering me. :)

Well, what I want to know is that whether I can have a base URL for all the links within the Milonic Menu. Since I have a long URL : kuanyew.tripod.com it would be silly to type it out on every link.

For example:
kuanyew.tripod.com/Arsenal/arsenal.html

What I want is to only type "/Arsenal/arsenal.html" , instead of everything because I have "/Juventus/juventus.html" too.

Is there a line on the menu where I can just enter the base URL which is kuanyew.tripod.com, since it's going to appear in each and every link.
Any Dream Worth Having,
Is A Dream Worth Fighting For!
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

This should be easy.

Set the base URL at the top of the array with this

Code: Select all

baseurl="http://kuanyew.tripod.com/"
Then each menuitem needs to have this value added like this

Code: Select all

,"Menu Item", baseurl+"Arsenal/arsenal.html",,,1
......and so on

Hope this helps
Andy
Two5kid
Beginner
Beginner
Posts: 5
Joined: Thu Aug 08, 2002 6:43 pm
Contact:

Which Line?

Post by Two5kid »

Thanks for the reply, that would have saved me a lot of trouble. Anyway, to which line should I set the 'baseurl' code?

Right above "Time Delay"?
or at the "Reserved for Future Use"?
Any Dream Worth Having,
Is A Dream Worth Fighting For!
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Anyline will do, Somewhere at the top of the code before your first menu item.

-- Andy
Two5kid
Beginner
Beginner
Posts: 5
Joined: Thu Aug 08, 2002 6:43 pm
Contact:

Thanks

Post by Two5kid »

Thanks a lot for the help.
Any Dream Worth Having,
Is A Dream Worth Fighting For!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

FWIW, I did what you were after without setting a base. Since the server already knows 'where it is' (base, if you will), I was simply able to go after my images and links from there; e.g., /sai/graphics/home.jpg, /sai/staff/calendar/, etc. No problems.
John
Two5kid
Beginner
Beginner
Posts: 5
Joined: Thu Aug 08, 2002 6:43 pm
Contact:

You Meant

Post by Two5kid »

Err... You mean I don't have to set the urls?

For instance, if I want to jump from one directory to another?
Say, from baseurl/Arsenal/ to baseurl/Juventus/ ?

Usually, in HTML, you can't do so as the browser would search for
baseurl/Arsenal/Juventus/ . Do you know what I mean?
Any Dream Worth Having,
Is A Dream Worth Fighting For!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: You Meant

Post by John »

Two5kid wrote:Err... You mean I don't have to set the urls?
Just past the base. For instance, I have a menu running at http://westcgi.west.asu.edu/sai/. No base is specified in the code. To get to another location on the same server would be something like this snip...

Code: Select all

,"Bulletin Board","/sai/staff/ads/",,,1
,"Committees","/sai/staff/committees/",,"Committees",1
,"Directory","/sai/staff/directory/",,"Directory",1
,"Discounts","show-menu=discounts",,"Discounts",1
,"Energy-Wise Tips","/sai/staff/energy.cfm",,,1
,"Ergonomics","http://www.osha-slc.gov/SLTC/computerworkstations_ecat/",,"Ergonomics",1
etc.

Note that I have added the /sai/ again. That's only because of the way our servers are set up. Same is true for graphics...

Code: Select all

"/sai/graphics/arrow.gif",
Nifty stuff.

Also note that, obviously, if you go off-server you will need the entire URL :!:
John
dikonstrukt
Beginner
Beginner
Posts: 6
Joined: Fri Oct 04, 2002 4:22 pm

THANKS!

Post by dikonstrukt »

jgillett...thanks so much! was exactly the problem i was having and this solved it

:D :D :D :D :D
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Glad to hear it!

That'll be $2 please... :mrgreen:
John
Post Reply