[Zope] Recursive method

Roché Compaan sparroy@adept.co.za
Sun, 22 Aug 1999 09:44:22 +0200


> > DTML Method 'start':
> >
> > <!--#var standard_html_header-->
> >   <!--#var voodoo-->
> > <!--#var standard_html_footer-->
> >
> > DTML Method 'voodoo':
> >
> > <!--#in "objectValues('Folder')"-->
> >   <!--#var id-->
> >   <a href="<!--#var absolute_url-->"><!--#var absolute_url--></a><br>
> >   <!--#var voodoo--><br>
> > <!--#/in-->
> >
> > sentence, try it, it will work for you).
> >
> > Welcome to the Zen of Zope. ;)
> >
> > -Michel
This makes perfect sense.  What does not make sense is that it does not
work.

In my top level folder i have a dtml method "navigation":

<!--#in "objectValues(['Folder', 'DTML Document'])"-->
  <!--#if "meta_type == 'Folder'"-->
  <tr><td>
    <a href="<!--#var absolute_url-->"><!--#var id--></a>
  </td></tr>
  <!--#var navigation-->
  <!--#/if-->
<!--#/in-->

Also in my top level folder i have my "standard_html_header", which
references the "navigation" method.

What is funny is that if i view my "standard_html_header" it renders the
whole hierarchy.  If i view "index_html" which references
"standard_html_header" it does not render the folder hierarchy at all.

r.