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

Hamzal Kamal k_hamzat@yahoo.com
Sat, 2 Mar 2002 01:18:37 -0800 (PST)


--- Steve Spicklemire <steve@spvi.com> wrote:
> Hi Kamal..
> 
> you are iterating through folders. 
Yes steve, becos the DTML Document titles i want are inside these 
Folders. 

this structure below show the exact thing i want to do

-content_html :- DTML Method that do the iteration
- Folder1 :- container of the DTML Documents
   - DTML Document :- has the title i needed 
-Folder2
   - DTML Documents

etc.

I hope you get me better now.


If you want to iterate through 
> documents you need something like:
> 
> <dtml-in "objectItems(['DTML Document'])">

Yes i know but I think this will work if the DTML Documents are in
the same FOlder with the DTML Method that perform the iteration.

Thanks for your supports.
Regards.
kamal.
> 
> 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
> 


=====
Hamzat kamaldeen Ishola
Dnet Systems Limited
223 Ikorodu Road, Lagos.
234 1 7749381, 234 08033011305

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com