On Tue, 08 Aug 2000, Gijs Reulen wrote:
Hi
I would like to list all objects in a folder. No problem there. However, I
want to use the function/method universely so I need to pass the name of
the target folder; as a string is the only way I can think of (formatted as
a url).
I tried several things in DTML and studies the DTML Ref, the mailinglist
and the How-To's very hard but did not have the Enlightment yet :-(
Is it possible ?
You looked in almost all the right references. (o8
The one more that you will find indispensible from now on is the Zope Quick
Reference. Go now, read it, save it, love it. (o8
Example:
dtml-in "PARENTS[0].objectValues()"
dtml-var icon
dtml-var id
dtml-var title
dtml-var meta_type
dtml-var bobobase_modification_time fmt="%m/%d/%Y"
/dtml-in
But then instead of PARENTS[0] some parameter, for example:
/method?folder=foo
You want the getitem method of _
dtml-in "_.getitem(sObjectName).objectValues()"
...
/dtml-it
Gijs Reulen
Have a better one,
Curtis Maloney
___
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 )