----- Original Message -----
From: "Anderson Ami" <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 12:00 PM
Subject: [Zope] Calling a DTML Document using a string

> How can I do a dtml document call using the call dtml tag ?
> e.g.
> - I have 3 DTML documents ( bot1, bot2 and bot3)
> - I have in my request a int variable called varX
> - I would like do it, but this one doesn't work :
> ...
> <dtml-var expr="bot + varX">

I think this will work.

<dtml-let doc=bot>
<dtml-var "doc + _.str(varX)">

The dtml-let call seems to render the 'bot' document. (I'm not very experienced
with the dtml-let tag.) You need to convert varX to a string so you can
concatenate the two strings together.

Give that a try!


Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to