[Zope] Folder Property problem

Roel Van den Bergh roel@planetinterior.com
Fri, 15 Nov 2002 11:20:42 +0100


Hi all,

For my lazy users I'm trying to add a property to some folders and display
it.
At some point in the folder hiearchy I want to display a number linked to
the Title or Id of that folder. I added a Property to these folders.
Displaying the numbers works fine where they should appear, but they also
appear at places where they should not. Apparantly this Property is
inherited by all subfolders.

Anny sugestions?

TIA Roel.

code taken from CMF 1.2:

<table border="0" cellspacing="0" cellpadding="2" nowrap>
 <tr>
  <td>&nbsp;</td>
  <td><font size="2"><b>Folders</b></font></td>
  <td>&nbsp;</td>
<dtml-in expr="objectValues( [ 'Folder', 'Portal Folder', 'CMF Collector',
'Photo Folder' ] )"
         skip_unauthorized
         sort="title_or_id">
  <td width="18" align="center"><img align="middle"
src="&dtml-portal_url;/&dtml-getIcon;" alt="&dtml-Type;" title="&dtml-Type;"
border="0"></td>
  <td width="200"><a href="&dtml-absolute_url;/"><dtml-var
title_or_id></a></td>
  <td>
  <dtml-if gebouwcode>
  <dtml-var gebouwcode>
  <dtml-else>&nbsp;
  </dtml-if>
  </td>
</dtml-in>
</table>