Hi Sergiy,

Thanks for your answer, but still doesn't work.

I have the jahia site templates in : 

Z:\jahia5.0.1_03\tomcat\webapps\jahia\jsp\jahia\templates\prova2

Where prova2 is my site.

There are 2 more folders : "corporate_portal_templates_v2" and
"mistemplates" this last one is the folder where I saved my templates
"portada6.jsp" and "holamundo.jsp". I've also created two folders inside
this folder, "estils" where there is the stylesheet named i2.css, another
folder inside "mistemplates" named "images" where there are the images I
pretend to show.

The reference inside de code of the jsp files to the stylesheet is:
<link rel="stylesheet" href="<content:contextURL/>/estils/i2.css"
type="text/css"/>


For the images, between the html tags <body></body> of course I do something
like:

<img src="./imatges/naranjito.jpg" width="47" height="56" />

I also tried with:

<img src="<content:contextURL/>/imatges/naranjito.jpg" width="47"
height="56" />

I did what you told me: copy the css to the "corporate_portal_templates_v2"
folder and also the folder images with all the files I need, but still have
problems...the page does not show any image nor the CSS styles.

Thank you very much!

Pedro Tirado



-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
En nombre de Sergiy Shyrkov
Enviado el: miércoles, 27 de junio de 2007 14:55
Para: [email protected]
Asunto: Re: [template_list] CSS and images

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

_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list

Reply via email to