;-) no... there was no reason to use a relative link. I think I'm just a bit tired to think straight... Thx for this quick solution.
Cheers, Robby -----Original Message----- From: news [mailto:[email protected]] On Behalf Of Andreas Hartmann Sent: vrijdag 27 februari 2009 14:05 To: [email protected] Subject: Re: question regarding cocoon protocols (css file not found depending on match pattern) 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
