[Zope3-Users] Skinning problem
Marius Gedminas
mgedmin at b4net.lt
Wed Jan 17 17:37:18 EST 2007
On Wed, Jan 17, 2007 at 09:50:58PM +0100, Florian Lindner wrote:
> Hello,
> I have a ressourceDirectory with a file styles.css
>
> <resourceDirectory
> directory="files"
> name="files"
> />
>
> I refer to it in my default template:
>
> <link rel="stylesheet" type="text/css" tal:attributes="href
> context/@@/files/styles.css" />
That's no good. The /@@/ view only works when context is a site.
Besides, I'm not sure you can use it in a TALES expression like this.
You want
<link rel="stylesheet" type="text/css"
tal:attributes="href context/++resource++files/styles.css" />
I think. (I'm sure "href context/++resource++name.css" is the right
solution for plain resource files, but I haven't used resourceDirectory
much.)
Marius Gedminas
--
A: No.
Q: Should I include quotations after my reply?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20070118/229c6700/attachment.bin
More information about the Zope3-users
mailing list