jump to content

You can use the dtml-tree tag to easily make a site map. Embed the following code in a DTML method on the top level folder. The new buttons are shown if the stuff has changed in the last day.

<dtml-tree branches_expr="objectValues(['Folder', 'DTML Document'])" nowrap=1 sort=id>
 <dtml-if title> 
 <dtml-if expr="meta_type == 'Folder'"> 
    <IMG SRC="<dtml-var SCRIPT_NAME>/<dtml-var icon>">
    <dtml-var title_or_id>
 <dtml-else>
  <IMG SRC="<dtml-var SCRIPT_NAME>/<dtml-var icon>">
  <A HREF="<dtml-var absolute_url>"><dtml-var title_or_id></a>
 </dtml-if>
  <dtml-if "(ZopeTime() - bobobase_modification_time()) < 1">
    <IMG SRC="/images/new.gif" alt="New" BORDER="0">
   </dtml-if>
 </dtml-if>
</dtml-tree>