[opencms-dev] Need Help: Where to copy Images, JS, Styles folders

Claus Priisholm cpr at codedroids.com
Fri Dec 12 15:07:00 CET 2003


On 12/12-2003, at 8.09, Suresh Kumar M R wrote:

> Hi,
> 	I am new to openCMS, I am going through documentations which are
> available on the openCMS site.
> We are presently planning to move our entire website to openCMS.
> At present there are many folders like IMAGES, JS, STYLES etc.
>
> I would like to know to where to copy these directories, whether to
> directory under ROOT folder or MODULES.
>

Depends, both will work (just keep in mind a new module is not set to 
be exported per default if you plan to export the stuff). If regular 
users (i.e. not managers) need to edit say a stylesheet, I'll suggest 
that make a folder in the root rather than making a module - it is 
easier to navigate into these folders compared to have to dig down the 
modules hierarchy (you can still make a module which 'controls' these 
folders if you really need a module).

> My second question is:
> Inside my JavaScript file I am calling various images, how to use
> <cms:link> inside JavaScript file?
>

You'll have to let OpenCms feed the result of the <cms:link> to your 
javascript, e.g. in the JSP

function foobar() {
...
imageDir = <cms:link>/images/</cms:link>;
image = imageDir + "my_image.jpg";
...
}


> Thanks in Advance
> M.R.SURESH KUMAR
>
> _______________________________________________
> 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
>
>
--
Claus Priisholm, CodeDroids ApS
+45 48 22 46 46
cpr (you-know-what) interlet.dk - cpr (you-know-what) codedroids.com
http://www.interlet.dk - http://www.codedroids.com




More information about the opencms-dev mailing list