[Zope-CMF] Making CMFProduct visible in folder contents

Pawel Lewicki lewicki@provider.pl
Tue, 28 May 2002 11:25:13 +0200


I altered the code of factory_type_information and set as the 'content_icon'
one of already existing. When I access it by
http://localhost:8080/portal/myProductInstance/getIcon I get the link to it.
But my products are still not rendered.
I wonder what is the difference as the core is almost copy/paste
'development' based on CMFBoringProduct that even doesn't have
'content_icon' property set. I took it from CMFCalendar.

Pawel Lewicki


----- Original Message -----
From: "Carl Rendell" <cer@sol43.com>
To: <zope-cmf@zope.org>; "Pawel Lewicki" <lewicki@provider.pl>
Sent: Sunday, May 26, 2002 6:15 PM
Subject: RE: [Zope-CMF] Making CMFProduct visible in folder contents

> I've run into similar problems, but the issue for me has involved
> the icon for the product.
>
> When I reviewed the folder_contents page template or dtml method I
> found that the condition to be met for presentation is a return
> from getIcon, or in dtml _.getattr(obj, 'icon', '')
>
> If the return is false, the item will not be displayed. Here are
> the code snippets -
>
> > Hi,
> > I created my own product based on CMFBoringProduct, but I've got one
> > problem. I can't see created instance while listing the content of the
> > folder. What did I wrong? Everything else seems to be fine. It's
> > registered
> > in portal_types with predefined actions, etc.
> >
> > Pawel Lewicki
> >
>
> Carl E. Rendell
> Solution43
> Information Distribution Consulting        |   "Ahhhh the power of
> cer@sol43.com                              |    acquisition"  - Chef Z