[Zope-CMF] Help with Tree Tag URLPARAM

Dieter Maurer dieter@handshake.de
Fri, 3 Aug 2001 22:19:04 +0200 (CEST)


love@formylove.org writes:
 > ...
 > I am trying to use the tree tag to display a list of folders on the page, but when I attempt to use the urlparam attribute of the dtml-tree tag it does not put in the proper url.
 > 
 > For Example, 
 > I first tried urlparam="arg1=true&arg2=&dtml-myvar;" and the url I got out of it was:
 > http://mysite.com/resource?arg1=true&arg2=&dtml-myvar;&tree=(some amount of random letters)
The person who designed the "urlparam" attribute did not think very wide...

  The "urlparam" value is put as literal string into the URL's query
  string -- not very useful.

There is a patch in the collector defining the parameter
"urlparam_expr". It treats its value as a Python expression,
evaluated it and uses the result as "urlparam" would do.
Find it and apply it.


Dieter