[Zope] Newbie question: script not seeing objects.
Farrell, Troy
troy.farrell@wcg.com
Fri, 1 Jun 2001 10:29:46 -0500
If index_html is a DTML Document and not a DTML Method, you will need to get
out of the Document due to acquision. Change:
<dtml-in expr="objectValues('Folder')">
to
<dtml-in expr="PARENTS[0].objectValues('Folder')">
Also, change that closing tag on the listitem </lr> -> </li>
Troy
-----Original Message-----
From: Anders Schneiderman [mailto:schneida@seiu.org]
Sent: Friday, June 01, 2001 9:58 AM
To: zope@zope.org
Subject: [Zope] Newbie question: script not seeing objects.
In a folder of my Zope site, I want to set up index_html so it will
automatically list the folders that are inside it. Unfortunately, it isn't
working; nothing's showing up.
Inside seiunet, there are two folders:
Organizing
Research
There are also two dtml methods:
index_html
listfolders
index_html contains:
---------------------------------------
<dtml-var standard_html_header>
<h2><dtml-var title_or_id></h2>
<p>
This is the <dtml-var id> Document.
</p>
<dtml-var listfolders>
<dtml-var standard_html_footer>
---------------------------------------
listfolders, code that I swiped from the Zope book, contains:
---------------------------------------
To view a folder, click on its name below:
<ul>
<dtml-in expr="objectValues('Folder')">
<li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a><br></lr>
</dtml-in>
</ul>
---------------------------------------
Here's what I get when I hit http://localhost:8080/seiunet/:
---------------------------------------
Welcome to SEIUNet!
This is the index_html Document.
To view a folder, click on its name below:
---------------------------------------
At first I thought I must've screwed up something from playing around with
so many Products, so I created a new, clean install of the latest stable
version of Zope. But as the results above show, it's still not
working. What am I doing wrong?
Thanks,
Anders
P.S. Thanks for the help from Tres and others steering me towards
CMF. I'm headed there next, but first I want to make sure I've got _some_
clue as to what I'm doing.
_______________________________________________
Zope maillist - Zope@zope.org
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 )