[Zope] Why are Document and Folder properties different?

JP Glutting JPGlutting@cspt.es
Tue, 2 Nov 1999 12:05:41 +0100


I have three (related) questions here. Any help greatly appreciated:

Question 1:

What is the difference between DTML Document properties and Folder properties?

If I use this code:

<dtml-in "objectIds(SPAM)">
 <dtml-with "_[_['sequence-item']]">
  <p><dtml-var title></p>
 </dtml-with "_[_['sequence-item']]">
</dtml-in "objectIds(SPAM)">

where SPAM=='Folder', I get the titles of all the subFolders in the current 
folder. When SPAM=='DTML Document', I get the title of the current folder, 
repeated by the number of Documents. Why does this happen?

Question 2: How can I step through the Documents in a folder and access their 
properties (like I am trying to do above)?

Question 3: How can I sort my output from the Folders/Documents by their 
properties? Something like:

<dtml-in "objectIds(SPAM)" sort='title'>

Thanks,

JP


***************************************************
JP Glutting
The Spanish Cochrane Centre
Institut Universitari Fundació Parc Taulí
Parc Taulí s/n
08208 Sabadell (Barcelona)
Phone: (34) 93 723.40.94 
Fax: (34) 93 716.38.04
Email: jpglutting@cochrane.es
http://www.cochrane.es/
***************************************************