AW: [opencms-dev] Java script
Michael Moossen
m.moossen at alkacon.com
Fri Feb 18 18:36:39 CET 2005
Hi,
first of all you can/should not include hard links in OpenCms, use
the <cms:link> tag or the CmsJspActionElement.link(String) method, due
to the fact that the links may vary from the online to the offline
project, for instance.
Doing so, you will have no more a static file, so your file should
not be in the resources folder that is an export point, ie. written to
hard disc without interpretation.
To improve performance you can set the export property of the file to
true, so it will be static-exported in the online project after
publishing )but still being executed every time in the offline project).
I would recommend you to try another method, for example, including
that variable definition in your template, or something like that.
Regards,
Michael Moossen
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Møller
Gesendet: Freitag, 18. Februar 2005 15:38
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Java script
I have a Java script menu on my JSP template the java script files are
located in the resource in the module under a folder menu_files.
But in one of the .js files folowing are needed
// 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/';
I have tried diferent solutions but I can't seem to get it working any
ideas ?
//Casper
**********************************************************************
This footnote confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list