That'll be something like:

<link rel="stylesheet" type="text/css" 
href="${request.contextPath}/docroot/css/style.css" />

Regards, Erik Alphenaar,
Neteffect Holding BV.

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: woensdag 9 augustus 2006 11:31
To: [email protected]
Subject: [magnolia-user] absolute and relaive paths inside magnolia
structure


Hi all,

I want to refer from a template page to a resource in the "docroot" 
folder, e.g. a link to an image or a stylesheet.

At the moment, my stylesheet is included in the template page like this:

<link rel="stylesheet" type="text/css" 
href="/magnoliaAuthor/docroot/css/style.css" />

My question:
How can I manage to give a relative link in "href" from a template jsp 
page to the docroot folder? If I leave the link absolute like this, 
after activation to the magnoliaPublic instance the link will still 
point to the author instance of course....

Thanks all,
Bernd

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

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

Reply via email to