Dtml-in objectItems
Morning all, I cannot make this code work: <dtml-with Interop> <dtml-in expr="objectItems('Interop')"> <a href="&dtml-absolute_url;"><dtml-var title_or_id></a> </dtml-in> </dtml-with> I've been searching for hours now in the list and site, but I've found nothing that tells me why I get a blank page when I'm trying to list the objects in the Folder Interop.... This snippet of code is in the same directory as the Interop folder... which has a bunch of folders and files in it. Can anyone help with this supposedly blatantly simple piece of code? Thanks, Paz
On Fri, 25 May 2001, Paul Zwarts wrote:
<dtml-with Interop> <dtml-in expr="objectItems('Interop')"> ^^^^^^^ this must be metatype, not folder's name.
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Greetings Oleg, Thanks for the quick response. I had tried that already. It didnt work. <dtml-in expr="objectIds('Folders')"> <a href="&dtml-absolute_url;"><dtml-var title_or_id></a> </dtml-in> The code does not raise an error, it just doesnt display any results. P -----Original Message----- From: Oleg Broytmann [mailto:phd@phd.fep.ru] Sent: 25 May 2001 11:56 To: Paul Zwarts Cc: Zope Subject: Re: [Zope] Dtml-in objectItems On Fri, 25 May 2001, Paul Zwarts wrote:
<dtml-with Interop> <dtml-in expr="objectItems('Interop')"> ^^^^^^^ this must be metatype, not folder's name.
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Fri, 25 May 2001, Paul Zwarts wrote:
<dtml-in expr="objectIds('Folders')"> <a href="&dtml-absolute_url;"><dtml-var title_or_id></a> </dtml-in>
The code does not raise an error, it just doesnt display any results.
<dtml-in expr="objectIds('Folders')"> Why "Folders"? There is no such metatype. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Fri, May 25, 2001 at 01:33:30PM +0200, Paul Zwarts wrote:
<dtml-in expr="objectIds('Folders')"> <a href="&dtml-absolute_url;"><dtml-var title_or_id></a> </dtml-in>
The code does not raise an error, it just doesnt display any results.
As Oleg already replied, "Folders" is not a standard meta-type. Assuming you use Netscape (or IE, most likely), hold your mouse over the icon of any object in the management interface. The icon's alt text value will appear, which happens to be identical to the object's meta-type. (The short answer is "Folder", not "Folders". There's an example very similar to this in the Zope book, too.) -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
On Fri, May 25, 2001 at 11:51:58AM +0200, Paul Zwarts wrote:
<dtml-with Interop> <dtml-in expr="objectItems('Interop')"> <a href="&dtml-absolute_url;"><dtml-var title_or_id></a> </dtml-in> </dtml-with>
What's about objectValues('') for all objects in the folder or e.g. objectValues('DTML Document') for all documents in the folder? ciao. -- Stefan Berthold <dingx@web.de> Zivilist in Lauerstellung FAX/VoiceBox: +49 180 50529 6341739
participants (4)
-
Mike Renfro -
Oleg Broytmann -
Paul Zwarts -
Stefan Berthold