Hallo Daryl,

you could try either Jahia's content taglib tag or the jData.gui() bean to 
retrieve the full path to the templates root dir, i.e.:

<link href="<content:contextURL/>/myown.css" rel="stylesheet" 
type="text/css"/>

or

<link href="<%= jData.gui().drawHttpJspContext(request) %>/myown.css" 
rel="stylesheet" type="text/css"/>

assuming your CSS stylesheet lies directly in the root of your templates 
directory.

Kind regards.
Sergiy.




Daryl Gerlach <[EMAIL PROTECTED]> 
28.11.2006 23:10
Please respond to
<[email protected]>


To
[email protected]
cc

Subject
CSS paths in templates






I'm working on a new Jahia 5 template and having difficulties 
referencing my cascading style sheet. The engine is unable to find the 
CSS file (404 error) using the following html in my template:
<link href="myown.css" rel="stylesheet" type="text/css"/>

The CSS is located in the same folder as the template. What is the 
recommended procedure for accessing CSS from templates? Is there any 
standard location for CSS files or is that totally up to me?

Reply via email to