[Zope3-Users] css/page template ?

Dominique Lederer dominique.lederer at inode.at
Sat Feb 10 04:34:51 EST 2007


tyson schrieb:
> I am having trouble getting my style sheet to load in my page template. 
> I added my .css file within the local package directory.  How can I
> point to this file on the filesystem.  I tried using a layer with a
> resource in my configure file, but that didn't work.  Any help would be
> much appreciated, thanks.
> 
just register your .css file as ressource via ZCML:

...
<browser:resource name="yourfile.css" file="yourfileonfilesystemin
samefolder.css" />
...

you can access it then via  {$site}/@@/yourfile.css
{$site} is the URL of the nearest site.

Dom


More information about the Zope3-users mailing list