[ZPT] How can you use TAL to render a textarea property?

Trevor Toenjes zope at toenjes.com
Wed May 21 17:48:57 EDT 2003


How can I render a property textarea (whether in a ZPT or a Folder) using
TAL?

IOW...
I want to be able to use properties to hold TAL'd content and render it just
like I would Structured Text or plain text.

example:
<div tal:define="pss modules/Products.PythonScripts.standard">
<span tal:condition="python:here.content_html.editmode=='stx'"
      tal:replace="structure
python:pss.structured_text(here.content_html.page_copy)">page copy content
here rendered in STX</span>
</div>

How can I do this with ZPT/TAL?

Thanks for the help.
-Trevor




More information about the ZPT mailing list