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
----------------------------------------------------------------