[Zope] Passing object name or id to DTML method

Vinod Shrestha vinods@karna.com
Mon, 4 Mar 2002 14:35:28 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_085A_01C1C389.D48582E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have a DTML method similar to the one below. I want to call this (from =
an html link) with an argument that is the name of the object xxx (eg. =
http://localhost/zope/test?xxx=3Ditem1_id). The idea is to use the same =
DTML method to render many instances of the object type. Being a newbie, =
I would appreciate your help--an example would be nice. Thanks.

<dtml-with xxx>
....
</dtml-with>

------=_NextPart_000_085A_01C1C389.D48582E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have a DTML method similar to the one =
below. I=20
want to call this (from an html link) with an argument that is the name =
of the=20
object xxx (eg. <A=20
href=3D"http://localhost/zope/test?xxx=3Ditem1_id">http://localhost/zope/=
test?xxx=3Ditem1_id</A>).=20
The idea is to use the same DTML method to render many instances of the =
object=20
type. Being a newbie, I would appreciate your help--an example would be =
nice.=20
Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-with xxx&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>....</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>&lt;/dtml-with&gt;</FONT></DIV></BODY></HTML>

------=_NextPart_000_085A_01C1C389.D48582E0--