10 Apr
2003
10 Apr
'03
4:21 p.m.
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