[Zope] STX in pagetemplates
Jim Penny
jpenny@universal-fasteners.com
Thu, 10 Apr 2003 12:21:03 -0400
On Thu, Apr 10, 2003 at 06:03:57PM +0200, Dani?l Hooymans wrote:
> Hi,
>
> How can i add an STX file from a pagetemplate??
>
> the following doesn't work.
>
> <p tal:content="structure stxfile" />
>
> Greets,
> Daniel
I create a Script Python named stx_ps with parameter text and body:
from Products.PythonScripts.standard import structured_text
if not text:
return ''
return structured_text(text)
Then my pt looks like:
<p tal:content="structure python:container.stx_ps(text=stxfile)">
Note the guard. structured_text gets upset if there is no input.
Jim Penny