[Zope3-Users] Container Contents View

Tom Dossis td at yoma.com.au
Tue Apr 11 17:46:16 EDT 2006


David Johnson wrote:
> This is probably a trivial question.  I would like have a container 
> contents view, but I do not want it to be index.html (which is 
> apparently the default?).  However the ZCML I’m using always seems to 
> define the view as index.html.  What am I doing wrong this time?
> 
>   <containerViews
>       for="myapp.interfaces.IContact"
>       index="zope.View"
>       contents="zope.View"
>       add="zope.ManageContent"
>       />

Leave out the index, e.g.

    <containerViews
        for="myapp.interfaces.IContact"
        contents="zope.View"
        add="zope.ManageContent"
        />

You can then set up your own page/view for index.html if desired.


More information about the Zope3-users mailing list