[Zope-CMF] Default View for folderish classes and index_html

Rainer Thaden Rainer Thaden <Thadi@gmx.de>
Fri, 14 Jun 2002 00:54:23 +0200


Hi,

i built a class ('fold_class') derived from PortalFolder, PortalContent
and DefaultDublinCoreImpl (in that order).

When I add an image to the instance ('inst') of the folderish class in
.../temp/inst/img1 and provide some HTML-Code in an attribute of the
class which references to the image like 'bla bla <img src='img1'>',
everything is fine if I call the view method ('fold_class_view') from
the actions box in the view of the class instance which displays the
HTML code together with the image. 

But if i call http://...temp/inst without appending the view method (e.g.
from the breadcrumbs) the image is not found. The Url of the image now
is .../temp/img1 instead of .../temp/inst/img1

So, to be precise, the view method of the class seems to be called,
because all properties belonging to the class are displayed properly,
but the method is not called from the instance. Items in the folderish
class are not accessed and the view method seems to be called from the
folder containing the class instance.

What's wrong?

Thanks in advance.

-- 
Regards,
 Rainer                          Thadi@gmx.de