Here's what I just whipped up in 5 minutes.. should think before posting 
I guess.

Create Method /Document

<dtml-var standard_html_header>
<dtml-var "DocumentRecurse(_.None,_,parent=Strader,indent=0)">
<dtml-var standard_html_footer>

Strader is the top Folder I want to document

Then Create Method /DocumentRecurse

<dtml-with parent>
<table width="100%" border="0" style="margin-left: &dtml-indent;%" cellspacing="0" 
cellpadding="0">
<dtml-in objectItems sort>
<tr><td width="20%"><img src="/<dtml-var icon>" width="16" height="16">
<dtml-var sequence-key></td>
<td width="20%"><dtml-var meta_type></td>
<td width="20%"><dtml-var title></td>
<td width="30%"><a href="<dtml-var "absolute_url()">/manage"><dtml-var 
"absolute_url()"></a></td>
</tr>
<dtml-if "meta_type == 'Folder'">
<tr><td colspan="4"><dtml-var 
"DocumentRecurse(_.None,_,parent=this(),indent=indent+5)"></td></tr>
</dtml-if>
</dtml-in>
</table>
</dtml-with>

Brad Clements,                [EMAIL PROTECTED]   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to