Hello Pedro,

I will give an example of how it works.
Assume, you have created a new virtual site in Jahia with the site key 
"mySite" and used a Corporate Portal Templates v.2 as a template set for it.
In this case your template files are located under:
<jahia_web_app_dir>/jsp/jahia/templates/mySite/corporate_portal_templates_v2/

So if, you reference a CSS file or an image in your template in the 
following way:
<link rel="stylesheet" href="<content:contextURL/>/myCSS.css" 
type="text/css"/>

then it means, that your CSS file is located under:
<jahia_web_app_dir>/jsp/jahia/templates/mySite/corporate_portal_templates_v2/myCSS.css

There is another tag available to reference resources relatively to the 
Web application context, i.e.
<img src="<content:serverHttpPath/>/images/myLogo.gif" alt="logo" />
means the imageis located under:
<jahia_web_app_dir>/images/myLogo.gif

Hope, this helps.

Kind regards
Sergiy Shyrkov

Pedro Tirado Diaz schrieb:
>
> Hi!,
>
> Well, I’ve recently installed the CMS and I’m testing it to check if 
> it is going to be a good solution for developing the intranet-extranet 
> of the enterprise I’m working for. I’m just at the beginning of my 
> apprenticeship and I came across some problems, for sure because my 
> ignorance.
>
> Well, I get to the point. I’ve been developing some templates and, 
> once I create a page based in one of these templates, I can’t see the 
> images or de css stylesheets. The problem is that, if I do something like
>
> <link rel="stylesheet" href="<content:contextURL/>/myCSS.css" 
> type="text/css"/>
>
> I don’t know where is the app looking for the css. The same problem 
> with the images, I don’t know where I have to put them.
>
> Thanks,
>
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list

Reply via email to