getting the title of document by iterating the folders.
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
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
--- 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
Hi Kamil, How about: <dtml-in "objectValues(['Folder'])"> <dtml-with sequence-item> <dtml-in "objectValues(['DTML Document'])"> <dtml-if sequence-start> <a href="<dtml-var absolute_url>"> &dtml-title_or_id; </a><br> </dtml-if> </dtml-in> </dtml-with> </dtml-in> On Saturday, March 2, 2002, at 04:18 AM, Hamzal Kamal wrote:
--- 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
participants (2)
-
Hamzal Kamal -
Steve Spicklemire