william_munny
Junior Member
Posts: 5
Registered: 12/21/2004
Member Is Offline
|
| posted on 2/18/2005 at 03:08 PM |
|
|
TMenu_path_to_files
I'm using the menu in an cms system called OpenCMS, I have included the menu in a template JSP page and now i'm getting the error: TMN is not
defined. I don't now i any of you have any experince with OpenCms and it's file structure but i'm pretty sure that I'm doing something wrong and
it's probably a easy correction.
// A path to Tigra Menu GOLD files from the PAGE containinig Menu
var TMenu_path_to_files = '/system/modules/dk.mysite.www/resources/menu_files/';
This is how it looks today. My structure are:
dk.mysite.www
/Templates
template.jsp -> including the menu files
/Resources
/menu_files
menu.js -> TMenu_path_to_files
|
|
|
tigra
Administrator
Posts: 1986
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 3/1/2005 at 12:48 AM |
|
|
That should be web path, not local system path.
/menu_files/
or
http://mystite.com/menu_files/
|
|
|
william_munny
Junior Member
Posts: 5
Registered: 12/21/2004
Member Is Offline
|
| posted on 3/1/2005 at 08:07 AM |
|
|
I got it solved, the browser was caching the script or something and it showed me a wrong error message that i already had correted. So don't work to
many hours :-)
|
|
|
boberang
Junior Member
Posts: 4
Registered: 1/30/2004
Member Is Offline
|
| posted on 4/18/2005 at 09:52 PM |
|
|
no way of doing relative?
So there is no way of doing a relative path to the TMenu_path variable?
Just seems odd/cumbersome to have to use three different absolute variables (one in development, one on the testing server, one in production).
But I guess that file shouldn't change so once those three are set....
|
|
|
william_munny
Junior Member
Posts: 5
Registered: 12/21/2004
Member Is Offline
|
| posted on 4/19/2005 at 07:34 AM |
|
|
I guess there is, I just haven't figured it out yet. I know that the OpenCMS takes care of the mapping of files using a JSP taglib, i just coudn't
make it work in the javascript file. And it's working now, so i'm not gonna try figuring it out at this point.
|
|
|