[Zope-CMF] CMF 1.2b2 breaks Cleanskin

Jon Edwards jon@pcgs.freeserve.co.uk
Thu, 17 Jan 2002 17:24:26 -0000


> try this:
>
> background-color: <tal:r tal-replace="python:
> test(here.ttw_style_editing(),template/bgcolor_setting,default)">#
> FFFFFF</tal:r>

Actually that didn't work at all! :-)

But a bit of searching brought up this thread on Zope-Dev -
http://lists.zope.org/pipermail/zope-dev/2001-December/014405.html - where
Chris and others said it should be possible.

This kinda works -

background-color: <x tal:replace="template/bgcolor_setting"

tal:condition="here/ttw_style_editing|default">#FFFFFF</x>

- but if you change the content-type to text/css you get a parser error.
Also if you "Browse HTML source" it gives you the whole text, including the
TAL tags.

I'll see if anyone on the ZPT list has any ideas... so close... and yet so
far!

Cheers, Jon