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 )

Reply via email to