Hi Magnolians,
I want to create my own custom (freemarker-) template. I created a new template
file and set up modules/templating/templates/<myProject>/<myTemplate> to use
it. Next I created a website based using that template. This works as expected.
However, now I want to add a style sheet (.css) file to my template. When I add
[code]<link rel="stylesheet" type="text/css" media="all"
href="${pageContext.request.contextPath}/docroot/<myProject>/css/main.css"
/>[/code] to the html head section of my template, I get an FreeMarker template
error:
[quote]Expression pageContext is undefined on line 8, column 68 in
templates/<myProject>/templates/homepage.ftl.
The problematic instruction:
----------
==> ${pageContext.request.contextPath} [on line 8, column 66 in
templates/<myProject>/templates/homepage.ftl]
----------[/quote]
Why is the pageContext not set?
How can I use my style sheet in my template?
Thanks,
Mike
[;-)
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=0bc436ee-d5ab-4b9d-9716-94b50f9b6cf9
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------