[Zope3-Users] suppressing menu item

Sascha Ottolski sascha.ottolski at lalisio.com
Wed Nov 15 18:39:59 EST 2006


Am Mittwoch, 15. November 2006 23:08 schrieben Sie:
> Sascha Ottolski wrote:
> > Hi,
> >
> > I created a sub-interface of IFile, say IMyFile(IFile), which has it's
> > own "Edit" form, configured like this:
> >
> >   <editform
> >       for="..IMyFile"
> >       schema="..IMyFile"
> >       class=".EditMyFile"
> >       permission="zope.ManageContent"
> >       name="editmyfile.html"
> >       menu="zmi_views"
> >       title="Edit"
> >       />
> >
> > Now that everything works, I want to switch off the "Upload" Tab that is
> > configured for IFile, and therefore inherited by IMyFile as well:
> >
> >   <browser:page
> >       name="upload.html"
> >       menu="zmi_views" title="Upload"
> >       for="zope.app.file.interfaces.IFile"
> >       template="file_upload.pt"
> >       class=".file.FileUpload"
> >       permission="zope.ManageContent"
> >       />
> >
> > Is it possible, and if, how?
>
> Hi Sascha,
> I think if you name your page (editform) 'upload.html' rather than
> 'editmyfile.html' it will effectively override the base view.

I suppose so, but what if I don't want to replace it, just wanna get rid of 
it?

-- 
Lalisio GmbH                                www.lalisio.com

Puschkinstraße 1                   fon +49-(0)361/541 43 80
99084 Erfurt                       fax +49-(0)361/541 43 79
                                        kontakt at lalisio.com


More information about the Zope3-users mailing list