Some one else already posted the reply in another thread. But just in case, I find the following DTML method to be very useful. I name it as listFolderContent and put it in my Zope root. In short, the id() method is kind of tricky, and to get the string value, it's better to use _['id']. <dtml-comment> ------------------------------------------------- This DTML method lists the content of a folder (except the index_html object) ------------------------------------------------- </dtml-comment> <ul><li><a href="&dtml-URL2;"><b>/..</b></a></li> <dtml-in expr="PARENTS[0].objectValues()" sort=id> <dtml-if "_['id'] <> 'index_html'"> <li><a href="&dtml-absolute_url;">&dtml-id;</a></li> </dtml-if> </dtml-in> </ul> ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
participants (1)
-
Hung Jung Lu