[Zope] Passing arguments with hyperlinks

Joachim Werner joe@iuveno-net.de
Tue, 7 Aug 2001 05:42:17 +0200


> <a href="ProjTeamMembers?teamid=&dtml-FirmTeamId;"><dtml-var FirmName></a>

or in the "old" but sometimes easier to understand syntax:

<a href="ProjTeamMembers?teamid=<dtml-var FirmTeamId>"><dtml-var
FirmName></a>

If you have more than one parameter, put it like this:

http://url?parameterX=1&parameterY=2&parameterZ=3

> When you click on it, ProjTeamMembers will be run with the variable
'teamid'
> in the namespace.  When you call your ZSQL method, you just pass it the
> argument, as in:
>
> <dtml-in expr="myZSQLMethod(teamid=teamid)">
>   ...display team member...
> </dtml-in>

Even easier: <dtml-in myZSQLMethod>

The namespace-passing stuff all works automatically as long as you have
"teamid" in the parameter list of the ZSQL method ...

Joachim