philou
Junior Member
Posts: 6
Registered: 1/15/2007
Location: toulouse
Member Is Offline
|
| posted on 1/15/2007 at 07:03 AM |
|
|
Tigra Menu Gold/html sources in different directory
I must store the html pages of my project under different directory.
For instance, I have the following structure :
- menu.htm
- link1.htm
- dirHtm/link2.htm
- menu_files (tigra menu)
From menu I liked to call either link1.htm and dirHtml/link2.htm.
Everything works fine if I duplicate menu_files under dirHtm directory, but I think duplication of code is a bad manner.
I have also tried to change :
var TMenu_path_to_files = 'menu_files/';
into an absolute path in menu_files/menu.js so that It should be reachable from each directory, but the menu does not display correctly.
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/15/2007 at 03:14 PM |
|
|
you don't need to duplicate the code if you use absolute paths in menu.js and items.js
something doesn't work as you want please submit a support ticket providing the url of the page.
|
|
|
philou
Junior Member
Posts: 6
Registered: 1/15/2007
Location: toulouse
Member Is Offline
|
| posted on 1/16/2007 at 03:29 AM |
|
|
As you told me, I send a zip attachment containing an exemple of my problem : this version is working as I have duplicated menu_files.
The goal of this test is to suppress "anotherHtmDir/menu_files" dir, I am not able to do that, so if you have an idea, please tell me ...
To check it works, load "index.htm", then put the mouse on "OverlapItem", the menu should overlap the page, click then on "page1" (on same dir),
then put the mouse again on "OverlapItem", the menu should overlap "exemple1" page, then do the same with "page2" (on different dir), it works
again : this last operation does not work in my config test if you suppress menu_files dir on anotherHtmDir and use absolute path, or there is
something I do not understand ...
Thanks again
[attachment removed]
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/16/2007 at 09:54 AM |
|
|
I asked for the URL of the page in the support ticket, but never the less I got your files.
From what I see in your files you don't use absolute paths. Note that absolute paths break the menu when it is accessed from the local computer
because the browser will try to get the files from the root filder of the local drive instead of the root folder of the website as when files accessed
via web server.
Say menu_files directory is located in the root of your website then in menu.js the path should look like:
var TMenu_path_to_files = '/menu_files/';
or
var TMenu_path_to_files = 'http://www.yourdomain.com/menu_files/';
|
|
|
philou
Junior Member
Posts: 6
Registered: 1/15/2007
Location: toulouse
Member Is Offline
|
| posted on 1/17/2007 at 02:59 AM |
|
|
I have used your method (absolute path) again, and it is working on this example ! (I had a problem with caching I think).
Thank you, but could you tell me for the next time how to get a ticket from the support when I have a serious problem please ?
|
|
|
tigra
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/17/2007 at 09:10 AM |
|
|
Check your order confirmation email for the URL and the login information.
|
|
|