tree tag and the URL attribute
Hello List, I´ve made a dtml-method with a tree tag and a SQL method. It works fine. My problem is that i want to add a HTML form variable to the link of the plus and minus buttons. For example: ---------------| `´ <A NAME="1" HREF="projekt_mailingliste_html?tree-e=eJyLVneEAo9QT1t1HQXDWAAwLQSv#1 &myVar=myValue" -------------- I tried the url attribute of the tree tag but nothing happend. <dtml-tree id=myID branches_expr=myExpr url=myURL> . . . </dtml-tree> Is it possible to change this link ? How ? Thanks in advance Florian Schuler
Hi Florian! You use "urlparam" for adding a query string to the created links. Unfortunately, you won't be able to add a _dynamic_ query string, since you pass "urlparam" as a string literal. Doing this would require something like "urlparam_expr" instead of a plain (string literal) "urlparam" parameter, that would be rendered before inclusion. The tree tag doesn't support this for the time being, but there are numerous patches (and for quite a long time, too - I hope one of them will make it into 2.5). Check the collector (as soon as it's working again) and the mailing list archives for "urlparam_expr". hth, Danny P.S.: Note that my own patch won't work (as it is) on Zope 2.4x... On Wednesday 17 October 2001 22:44, Florian Schuler wrote:
Hello List,
I´ve made a dtml-method with a tree tag and a SQL method. It works fine.
My problem is that i want to add a HTML form variable to the link of the plus and minus buttons.
For example: ---------------|
`´ <A NAME="1" HREF="projekt_mailingliste_html?tree-e=eJyLVneEAo9QT1t1HQXDWAAwLQSv#1 &myVar=myValue"
--------------
I tried the url attribute of the tree tag but nothing happend. <dtml-tree id=myID branches_expr=myExpr url=myURL> . . . </dtml-tree> Is it possible to change this link ? How ?
Thanks in advance
Florian Schuler
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Danny William Adair -
Florian Schuler