Hello Yves,<br><br><div class="gmail_quote">On Mon, Feb 25, 2008 at 11:49 AM, Yves Glodt <<a href="mailto:yg@mind.lu">yg@mind.lu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I successfully created a template, and I put css and images to the<br>
resources/css and resources/images subfolders.<br>
<br>
This works well, but what bothers me is that when I want to link to an image,<br>
(which Editors will also have to do soon), they have to browse through<br>
the /system folder deep into my template to find the image. I do not want<br>
that editors can even enter into /system.<br>
</blockquote><div><br>Editors usually don't directly deal with css files. For images, you can change the image folder to the type of Image gallery, then edtiors can access them when editing.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Also, when I link to the css files from my template, currently I do like this:<br>
<link href='<cms:link>../../resources</cms:link>/css/main.css'<br>
rel='stylesheet' type='text/css' /><br>
<br>
This feels strange for me... :-)<br>
</blockquote><div><br>You can use the absolute path starting with "/system", then OpenCms will correctly parse them by the aid of <cms:link>..</cms:link> tag.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
What speaks agains putting the images and css (or at least the images, which<br>
editors might need to upload or work with) into<br>
the /sites/default/mysite.com/images folder?<br>
</blockquote><div><br>Not in a convention way, at least.<br><br>Best<br><br>- RuiXian<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Then I could just do:<br>
<link href='/css/main.css' rel='stylesheet' type='text/css' /><br>
<br>
Of course it would break the separation between content and template.<br>
Could a sibling be a used for that?<br>
<br>
Best regards,<br>
Yves<br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</blockquote></div><br>