cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <robby.pelss...@ciber.nl>
Subject RE: Re: question regarding cocoon protocols (css file not found depending on match pattern)
Date Fri, 27 Feb 2009 13:36:17 GMT
;-)  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:news@ger.gmane.org] On Behalf Of Andreas Hartmann
Sent: vrijdag 27 februari 2009 14:05
To: users@cocoon.apache.org
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message