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

Salvador Santander Gutierrez salvador.santander.ext at juntadeandalucia.es
Mon Dec 15 08:42:00 CET 2003


For the image files I recommend you to create a directory in
/system/galleries/pics/ and put the images in this directory. Doing this,
when you make a html page, and you select the images popup, your directory
will be there.

----- Original Message ----- 
From: "Claus Priisholm" <cpr at codedroids.com>
To: <opencms-dev at opencms.org>
Sent: Friday, December 12, 2003 3:06 PM
Subject: Re: [opencms-dev] Need Help: Where to copy Images, JS, Styles
folders


>
> 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
>
> _______________________________________________
> 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