I just try to automatically get a list of subfolders, following the
example in the ZopeBook
<http://www.zope.org/Members/michel/ZB/SimpleExamples.html>. Here is
my code, in a DTML method in the root folder:
<ul>
<dtml-in expr="objectValues('Folder')">
<li><a href="<dtml-var absolute_url>">
<dtml-var title_or_id></a></li>
</dtml-in>
</ul>
If I call it from /index_html, it works fine. If I call it from any
other document anywhere, I just get <ul></ul> (so I'm sure the method
has been called) but nothing else as if objectValues sent nothing (no
need to say that I *have* subfolders an I also tried without the
'Folder' restriction, with the same result).
Any advice? Zope RPM 2.2.2 on RedHat 6.2.
Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2)
Python version: 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC
egcs-2.91.66 19990314/Linux (egcs-
System Platform: linux-i386
Process ID: 17906 (4101)
Running for: 2 hours 55 min 45 sec
_______________________________________________
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 )