[Zope-CMF] Problems generating list of files/folders
Anders Schneiderman
schneida@seiu.org
Sat, 07 Jul 2001 09:20:14 -0400
At 02:53 PM 6/6/01 -0400, you wrote:
>Hello Anders,
> Is it as simple as the 'typo' in your email.
>You call <dtml-var stuff> and the method is called liststuff.
>I hope it is that simple...
Alas, no. I'd caught that, but it still doesn't work. Here's the full
listing of index_html in my portal skin:
--------------------------
<dtml-var standard_html_header>
<dtml-with portal_properties>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" width="80%">
<h1> Welcome to &dtml-title; </h1>
<dl>
<dt> Overview </dt>
<dd> <dtml-var liststuff> </dd>
</dl>
</td>
<td valign="top" width="20%">
<dtml-var news_box>
</td>
</tr>
</table>
Here's another try:
<ul>
<dtml-in objectValues>
<li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a><br></lr>
</dtml-in>
</ul>
</dtml-with>
<dtml-var standard_html_footer>
--------------------------
As you can see, I even put the liststuff code inside index_html, and it
still doesn't work. The end result is the following screen:
--------------------------
Overview
To view a folder, click on its name below:
Here's another try:
--------------------------
Any suggestions of what to try next?
Thanks,
Anders
>-Jack
>
> > -----Original Message-----
> > From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
> > Of Anders Schneiderman
> > Sent: Wednesday, June 06, 2001 12:30 PM
> > To: zope-cmf@zope.org
> > Subject: [Zope-CMF] Problems generating list of files/folders
> >
> >
> > I've just started playing w/ CMF, and I've run into an odd
> > problem. I want
> > to change the index_htm method so it automatically lists the files,
> > documents, and folders in the folder that calls it. So far, I
> > can't get it
> > to work.
> >
> > I created a skin called "seiu" and put a copy of index_html into it via
> > customization (and yes, it's still a DTML Method, not a
> > document). In the
> > same skin folder, I created a DTML Method called "liststuff", which looks
> > like this:
> > ------------------------------------------
> > DTML Method at /intranet/portal_skins/seiu/liststuff :
> >
> > To view a folder, click on its name below:
> >
> > <ul>
> > <dtml-in expr="objectValues(['Folder', 'File', 'Document'])">
> > <li><a href="&dtml-absolute_url;"><dtml-var title_or_id></a><br></lr>
> > </dtml-in>
> > </ul>
> > ----------------------------------------
> > To call it I added the following code to index_html in the seiu skin:
> >
> > <dl>
> > <dt> Overview </dt>
> > <dd> <dtml-var stuff> </dd>
> > </dl>
> >
> > If I go to, say, http://localhost:8080/intranet/organizing/, I
> > don't get a
> > list. However, if I call the method directly --
> > http://localhost:8080/intranet/organizing/liststuff/ -- then it
> > works just
> > fine (w/o, of course, the standard headers). What am I doing wrong?
> >
> > Thanks,
> > Anders Schneiderman
> > Information Manager
> > SEIU International
> >
> >
> > _______________________________________________
> > Zope-CMF maillist - Zope-CMF@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-cmf
> >
> > See http://www.zope.org/Products/PTK/Tracker for bug reports and
> > feature requests
> >