I am trying to make a DTML method that will list all the DTML documents in a folder with links to them. Here is what I did: <ul> <dtml-in expr="objectValues('DTMLDocument')"> <li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a></li> </dtml-in> </ul> I name the method contents and call it by stating <dtml-var contents> in the document where I want the folders contents listed. This is giving me no output. The only thing I changed from the stock example in Chapter 5 of the Zope Book was the class 'DTMLDocument' - in the Zope Book the classes 'File' and 'Folder' are used. But in the API reference DTMLDocument is listed as a class along with File and Folder. Where am I going wrong? ======================== http://freezope.nipltd.net/wanwood paul@wanwood.co.uk ------------------------------------------------- This mail sent through UK Online webmail
On Thu, 22 Feb 2001, Paul and Naomi Newman wrote:
<dtml-in expr="objectValues('DTMLDocument')">
<dtml-in expr="objectValues(['DTMLDocument'])"> Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Thanks Oleg, but it still doesn't show anything. Paul Quoting Oleg Broytmann <phd@phd.pp.ru>:
On Thu, 22 Feb 2001, Paul and Naomi Newman wrote:
<dtml-in expr="objectValues('DTMLDocument')">
<dtml-in expr="objectValues(['DTMLDocument'])">
Oleg.
======================== http://freezope.nipltd.net/wanwood/paul paul@wanwood.co.uk ------------------------------------------------- This mail sent through UK Online webmail
On Thu, 22 Feb 2001, Paul and Naomi Newman wrote:
<dtml-in expr="objectValues('DTMLDocument')">
<dtml-in expr="objectValues('DTML Document')"> works for me (tested) Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
That's cos it's in a DTMLDocument (eventually). Try something like ; <dtml-in expr="PARENTS[0].objectValues(['DTMLDocument'])"> hth Phil ----- Original Message ----- From: "Paul and Naomi Newman" <newman@ukonline.co.uk> To: "Oleg Broytmann" <phd@mail2.phd.pp.ru>; "Oleg Broytmann" <phd@phd.pp.ru> Cc: "Paul and Naomi Newman" <newman@ukonline.co.uk>; <zope@zope.org> Sent: Thursday, February 22, 2001 3:19 PM Subject: Re: [Zope] Simple DTML question
Thanks Oleg, but it still doesn't show anything.
Paul
Quoting Oleg Broytmann <phd@phd.pp.ru>:
On Thu, 22 Feb 2001, Paul and Naomi Newman wrote:
<dtml-in expr="objectValues('DTMLDocument')">
<dtml-in expr="objectValues(['DTMLDocument'])">
Oleg.
======================== http://freezope.nipltd.net/wanwood/paul paul@wanwood.co.uk
------------------------------------------------- This mail sent through UK Online webmail
_______________________________________________ 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 (4)
-
Chris Withers -
Oleg Broytmann -
Paul and Naomi Newman -
Phil Harris