[Zope] How to automatically document a Zope site?

Brad Clements bkc@murkworks.com
Mon, 25 Sep 2000 20:13:53 -0400

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>
<dtml-if "meta_type == 'Folder'">
<tr><td colspan="4"><dtml-var "DocumentRecurse(_.None,_,parent=this(),indent=indent+5)"></td></tr>

Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements