dtml-tree: Passing parameters to branches-method
Hallo list, how can I pass a parameter (namely the REQUEST-Object) to the branches-method of dtml-tree? I tried the following: <dtml-tree branches="getBranches(REQUEST)"> branch: id: <dtml-var id> <dtml-var title_or_id> </dtml-tree> But it seems, the method "getBranches" isn't called at all. No tree is built up, but there isnt an error-message, too. Many thanks in advance, Ulla.
Ulla Theiss wrote at 2005-3-19 11:07 +0100:
how can I pass a parameter (namely the REQUEST-Object) to the branches-method of dtml-tree?
You really should leave the complex "dtml-tree" and go for "ZTUtils"...
I tried the following:
<dtml-tree branches="getBranches(REQUEST)">
Usually, you can access "REQUEST" via acquisition (e.g. "self.REQUEST" in a method or "REQUEST" in a DTML object or "request" in a ZPT). No need to pass it explicitely. -- Dieter
participants (2)
-
Dieter Maurer -
Ulla Theiss