[Zope-CMF] Problems generating list of files/folders

Jon Edwards jon@pcgs.freeserve.co.uk
Tue, 3 Jul 2001 11:22:51 +0100


Hi Anders,

Should you be using empty brackets after objectValues?

<dtml-in "objectValues()">

Here's a bit of code I hacked out of folder_contents that works for me, you
might be able to adapt it?

--------------------------------------------------------------------------

<dtml-in "objectValues(['Document', 'News Item', 'Portal File', 'Portal
Image', 'Favorite', 'Link'])" sort="Date" reverse>
  <tr valign="top" align="left">
    <td>
       <dtml-if icon>
         <a href="&dtml.url_quote-id;"
          ><img src="&dtml-BASEPATH1;/&dtml-icon;"
                alt="&dtml-Type;" border="0"></a>
       </dtml-if>
    </td>
    <td>
         <a href="&dtml.url_quote-id;"
           >&dtml-id;<dtml-if title> (&dtml-title;)</dtml-if></a>
    </td>
  </tr>
</dtml-in>
--------------------------------------------------------------------------

HTH

Cheers, Jon