[Zope] Calling a DTML Document using a string
Jonothan Farr
jfarr@real.com
Wed, 24 Jan 2001 12:10:09 -0800
----- Original Message -----
From: "Anderson Ami" <anderson@websolucoes.com.br>
To: <zope@zope.org>
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)">
</dtml-let>
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!
--jfarr