[Zope-CMF] ZPT and stylesheets again!

Jon Edwards jon@pcgs.freeserve.co.uk
Fri, 18 Jan 2002 16:00:19 -0000


> -----Original Message-----
> From: Arnar Lundesgaard [mailto:arnar.lundesgaard@creuna.no]
> Sent: 18 January 2002 15:34

Hi Arnar,

(cc'ing this back to the list, in case someone else has a similar problem)

> First, the "tal:condition"-statement decides whether the element
> should be included, not if it should perform the "tal:attributes"
> statement.

Ahhhhh! That was my fundamental misunderstanding

> Second, this example works for me.
>
> <link rel="stylesheet" href="dw_stylesheet.css" type="text/css"
>       tal:attributes="href python: path('here/ttw_editing')
>                       and path('here/zpt_stylesheet/absolute_url')
>                       or path('default')">
>
> You can use 'here.ttw_editing' instead of path(...).

I've read that about 100 times, and it's gradually starting to make sense!
:-)

Thanks for your help!

Cheers, Jon

Jon Edwards
Pricom Ltd
www.pricom.co.uk