[Zope3-Users] Container Contents View
David Johnson
djohnson at jsatech.com
Wed Apr 12 17:39:44 EDT 2006
Thank you. Exactly what I needed.
> -----Original Message-----
> From: Tom Dossis [mailto:td at yoma.com.au]
> Sent: Tuesday, April 11, 2006 4:46 PM
> To: David Johnson
> Cc: zope3-users at zope.org
> Subject: Re: [Zope3-Users] Container Contents View
>
> 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