[Zope] Re: getting the title of document by iterating the folders.

Steve Spicklemire steve@spvi.com
Fri, 1 Mar 2002 14:28:56 -0500


Hi Kamal..

you are iterating through folders. If you want to iterate through 
documents you need something like:

<dtml-in "objectItems(['DTML Document'])">

It may also be enlightening to do:

<dtml-in "objectItems()">
<dtml-var id>:<dtml-var meta_type><br>
</dtml-in>

to be sure you really know the meta_types of the objects you are 
iterating over.

good luck!
-steve


On Friday, March 1, 2002, at 01:11 PM, Hamzal Kamal wrote:

> Hi All,
> I am trying to get title of document stored in the folders by
> iterating through the folders.
>
> This is what i have been doing:
>
> <dtml-in "objectItems(['Folder'])">
> <a href="&dtml-URL1;/&dtml-id;/">
> &dtml-title;
> </a><br>
> </dtml-in>
>
> Can you please tell me what i am doing wrong.
>
> Thanks.
> kamal
>
>
>
>
> =====
> Hamzat kamaldeen Ishola
> Dnet Systems Limited
> 223 Ikorodu Road, Lagos.
> 234 1 7749381, 234 08033011305
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Greetings - Send FREE e-cards for every occasion!
> http://greetings.yahoo.com