Hi Robby,
Robby Pelssers schrieb:
[…]
Inside the page.jx (my page template) I have following reference to the
css file.
<link type="text/css" rel="stylesheet" href="css/styles.css"/>
why do you use a relative link here? Shall the CSS depend on the context?
If not, I'd rather recommend
<link type="text/css" rel="stylesheet" href="/$BLOCK/css/styles.css"/>
HTH,
-- Andreas
The problem I am facing is that the pagetemplate is not always generated
from the same match pattern.
E.g. pattern=”index.html” or pattern=”main/released/product/xyz”
This causes that my css file is not found. No pipeline matched request:
main/released/product/css/styles.css
Can’t I use some cocoon protocol that indicates that the file has to be
searched from COB-INF as the context folder? And if there is no such
protocol, what is the best way to handle this issue?
Cheers,
Robby Pelssers
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]