[Zope] Can we pass dtml-var to another dtml-var

Matt Goodall mgg@isotek.co.uk
Fri, 05 May 2000 15:06:32 +0100


Rajani Iyer wrote:
> 
> Hi Every Body
> 
> Is there any way to pass dtml-var value to another dtml-var
> 
> for e.g
> 
> <dtml-call "REQUEST.set('name1','bim_tiruchirapalli_admission')">
> <dtml-call "REQUEST.set('name2','_[name1]'">
> or
> <dtml-call "REQUEST.set('name1','bim_tiruchirapalli_admission')">
> <dtml-call "REQUEST.set('name2',<dtml-var name2>">
> 
> and when i try to say
> 
> <dtml-var name2>
> 
> it is giving me an error
> 
> so one could find solution for me

Just use the variable name without the <dtml-var name1> bit i.e.

<dtml-call "REQUEST.set('name1','bim_tiruchirapalli_admission')">
<dtml-call "REQUEST.set('name2',name1)">

/Matt

-- 
Matt Goodall             |  Isotek Electronics Ltd
email: mgg@isotek.co.uk  |  Claro House, Servia Road
Tel: +44 113 2343202     |  Leeds, LS7 1NL
Fax: +44 113 2342918     |  England