[Zope] DTML within DTML?

Oliver Bleutgen myzope@gmx.net
Thu, 28 Mar 2002 20:34:33 +0100


Colin Fox wrote:
> I'm trying to set up a dynamic redirect, and I can't figure out the
> syntax.
> 
> Given there's a variable called 'record_id', and I have a page called
> 'edit' which takes a parameter called 'r_id', here's the redirect
> statement I'd like to use:
> 
> <dtml-call expr="RESPONSE.redirect('edit?r_id=record_id')">
> 
> I need the record_id field to be evaluated, but the rest to be used
> literally. How do I do this?

<dtml-call expr="RESPONSE.redirect('edit?r_id='+record_id)">

this isn't dtml within dtml, this is python, and you add a fixed string 
and a string variable, so to say.

cheers,
oliver