[opencms-dev] Best location for resources like images and css
Yves Glodt
yg at mind.lu
Mon Feb 25 10:49:51 CET 2008
Hello,
I successfully created a template, and I put css and images to the
resources/css and resources/images subfolders.
This works well, but what bothers me is that when I want to link to an image,
(which Editors will also have to do soon), they have to browse through
the /system folder deep into my template to find the image. I do not want
that editors can even enter into /system.
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... :-)
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?
Then I could just do:
<link href='/css/main.css' rel='stylesheet' type='text/css' />
Of course it would break the separation between content and template.
Could a sibling be a used for that?
Best regards,
Yves
More information about the opencms-dev
mailing list