[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Variables and Advanced DTML

nobody@nowhere.com nobody@nowhere.com
Sat, 21 Sep 2002 04:32:42 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvDTML.stx#2-71

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

    Now we can create a DTML Method that uses the *tree* tag and our
    Scripts to draw a site map::

      <dtml-var standard_html_header>

      <h1>Site Map</h1>

      <p><a href="&dtml-URL0;?expand_all=1">Expand All</a> |
         <a href="&dtml-URL0;?collapse_all=1">Collapse All</a>
      </p>

      <dtml-tree branches="publicObjects" skip_unauthorized="1">
        <a href="&dtml-absolute_url;"><dtml-var title_or_id></a>
      </dtml-tree>

      <dtml-var standard_html_footer>

      % Anonymous User - Sep. 21, 2002 4:32 am:
       <dtml-with AnyRootFolder>
         <dtml-tree branches="getSubFolders">
           <a href="&dtml-absolute_url;"><dtml-var title_or_id></a>
         </dtml-tree>
       </dtml-with>

       The tree is rooted in current Folder, but not in AnyRootFolder.
       Why ???