Re: [Zope] dtml-tree (urlparam)
Dear list, many thanks for the link to a little bit more documentation of dtml-tree. Unfortunately the parameter of interest (urlparam - Since Zope 2.2??) is not mentioned there. Meanwhile I found in the Zope-Bible (Chapter 4, Page 115): The use of this attribute [urlparam] is somewhat limited because Zope simply passes along whatever string you specify as the value for the urlparam attribute. Expressions, and therefore the dynamic insertion of variables, are not possible with this attribute under the current version of Zope. ;-( The first question is clear now, but the second one becomes more and more important: Does anybody have an idea to work around the problem? Again, many, many thanks in advance, Ulla. Jonathan wrote: Have you looked at this: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html Jonathan - Original Message - From: Ulla Theiss [EMAIL PROTECTED] To: Zope Mailing List zope@zope.org Sent: Wednesday, December 07, 2005 4:50 PM Subject: [Zope] dtml-tree (urlparam) Dear list, I have a problem using dtml-tree. The page which contains a dtml-tree should show a dynamic parameter, passed with to url calling the dtml-tree-page. page_with_dtml_tree?myparam=yup Before expanding or collapsing the tree, everything works fine. But if I expand or collapse it, this parameter is forgotten. I found the dtml-tree-parameter urlparam, which is included in the expanding and collapsing widget links. dtml-tree urlparam=myparam=abc This works fine with hard coded strings. * But my string is dynamic! * How can I pass it? dtml-tree urlparam=myparam=dtml-var myparam produced syntax-errors. Has somebody an idea, how to pass it - or how to work around the problem? Many thanks in advance, Ulla. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-tree (urlparam)
Dear list, I have a problem using dtml-tree. The page which contains a dtml-tree should show a dynamic parameter, passed with to url calling the dtml-tree-page. page_with_dtml_tree?myparam=yup Before expanding or collapsing the tree, everything works fine. But if I expand or collapse it, this parameter is forgotten. I found the dtml-tree-parameter urlparam, which is included in the expanding and collapsing widget links. dtml-tree urlparam=myparam=abc This works fine with hard coded strings. * But my string is dynamic! * How can I pass it? dtml-tree urlparam=myparam=dtml-var myparam produced syntax-errors. Has somebody an idea, how to pass it - or how to work around the problem? Many thanks in advance, Ulla. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-tree (urlparam)
Have you looked at this: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.15.html Jonathan - Original Message - From: Ulla Theiss [EMAIL PROTECTED] To: Zope Mailing List zope@zope.org Sent: Wednesday, December 07, 2005 4:50 PM Subject: [Zope] dtml-tree (urlparam) Dear list, I have a problem using dtml-tree. The page which contains a dtml-tree should show a dynamic parameter, passed with to url calling the dtml-tree-page. page_with_dtml_tree?myparam=yup Before expanding or collapsing the tree, everything works fine. But if I expand or collapse it, this parameter is forgotten. I found the dtml-tree-parameter urlparam, which is included in the expanding and collapsing widget links. dtml-tree urlparam=myparam=abc This works fine with hard coded strings. * But my string is dynamic! * How can I pass it? dtml-tree urlparam=myparam=dtml-var myparam produced syntax-errors. Has somebody an idea, how to pass it - or how to work around the problem? Many thanks in advance, Ulla. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-tree urlparam
Oops. Forgot to mention, this patch adds a new param to the tree tag, 'urlparam_expr' which is a Python expression to evaluate and use as the urlparam. --jfarr - Original Message - From: JĂșlio Dinis Silva [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 18, 2000 12:59 PM Subject: [Zope] dtml-tree urlparam Hello all! Suppose I have a page who needs some dinamically generated params in order to be rendered. Suppose this page also has a dtml-tree. I found that to add extra params to the url created I can use the urlparam param :-) But suppose instead of passing "arg=1" I want to pass REQUEST['QUERY_STRING']. I thought urlparam would do the trick but using urlparam=QUERY_STRING the string passed is "QUERY_STRING" instead of the value of QUERY_STRING. Is there another param to do what I want or do I have to go into the source to hack dtml-tree to force to pass my QUERY_STRING parameters? thanx to all, Julio Dinis Silva _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] 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 ) ___ Zope maillist - [EMAIL PROTECTED] 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 )