[opencms-dev] Best location for resources like images and css

RuiXian BAO ruixian.bao at gmail.com
Wed Feb 27 22:30:08 CET 2008


Hello Yves,

Stay online:)

On Tue, Feb 26, 2008 at 9:56 AM, Yves Glodt <yg at mind.lu> wrote:

>
>
> After reading your comment I think I will keep the css and
> template-related
> images in /system/modules/*/resources/images, and I will put just the
> content-related images to /sites/default/*/images. This way template and


You can still put content-related images to some folders under "/system",
like "/system/mygalleries". This way, editors are still able to upload
there.

Best

- RuiXian


> content are clearly separated, and editors can upload there, and stay out
> of /system/modules completely
>
> > > Also, when I link to the css files from my template, currently I do
> like
> > > this:
> > > <link href='<cms:link>../../resources</cms:link>/css/main.css'
> > > rel='stylesheet' type='text/css' />
> > >
> > > This feels strange for me... :-)
> >
> > You can use the absolute path starting with "/system", then OpenCms will
> > correctly parse them by the aid of <cms:link>..</cms:link> tag.
>
> Yes you are right of course, I have already changed my template to reflect
> that.
>
> Thank you very much for your comments!
> Best regards,
>
> Yves
>
> > > What speaks agains putting the images and css (or at least the images,
> > > which
> > > editors might need to upload or work with) into
> > > the /sites/default/mysite.com/images folder?
> >
> > Not in a convention way, at least.
> >
> > Best
> >
> > - RuiXian
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080227/5a7161c5/attachment.htm>


More information about the opencms-dev mailing list