[Zope] Finding stylesheet

John Poltorak jp at warpix.org
Mon Mar 20 11:22:12 EST 2006


On Mon, Mar 20, 2006 at 11:04:03AM -0500, Paul Winkler wrote:
> On Mon, Mar 20, 2006 at 03:44:02PM +0000, John Poltorak wrote:
> > I would like to set up a page template to use the stylesheet my.css if it 
> > is in the current folder, but if not to use the one in the root folder.
> > 
> > How do I specify this?
> 
> This is a very common and basic usage of implicit acquisition.
> Something like:
> 
>   <link rel="stylesheet" type="text/css" href=""
>        tal:attributes="href context/my.css/absolute_url" />

I did have that although it didn't work properly but I understand why 
now.

If my.css contains

background-image: url(images/background.gif);

how would 'images/'be resolved? (Assuming I have an 'images folder in the 
current folder and its parent.)
 
> -- 
> 
> Paul Winkler
> http://www.slinkp.com


-- 
John




More information about the Zope mailing list