Do they have to be in the docroot?
I mean, all my static resources are still under web root in a company
specific folder where everything is organized...




-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 21, 2007 8:00 PM
To: [email protected]
Subject: Re: [magnolia-user] Using static resources in templates...

Hi Amir,

The easiest is to put your static files in the /docroot/ directory of  
your webapp, as Nicole pointed out.
You could also bundle them in a module jar, see the module related  
documentation.

Cheers

g

On 21 Feb 2007, at 22:39, Amir Mistric wrote:

> Hello
>
> Can someone tell me how to use static resources in templates.
> For example, I have a CSS resource in a following folder:
>
> /webapps/magnolia-author/mycompany/style/mystyle.css
>
>
> Which I want to use in my template located under
>
> /webapps/magnolia-author/mycompany/template/standard.jsp
>
>
> In standard.jsp (in the head ) I have
>
> <link rel="stylesheet"                href="../style/mystyle.css"
> type="text/css" />
>
>
> But this gives me a 404 error...
> I also tried
>
> <link rel="stylesheet"                href="/style/mystyle.css "
> type="text/css" />
> <link rel="stylesheet"                href="style/mystyle.css "
> type="text/css" />
> <link rel="stylesheet"                href="/mycompany/style/mystyle.css "
> type="text/css" />
> <link rel="stylesheet"                href="mycompany/style/mystyle.css "
> type="text/css" />
>
>
>
> None of the above works....
>
> Any ideas?
>
> Thanks
> Amir
>
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/developer.html
> ----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------

Reply via email to