[Zope3-Users] Re: How to do addform+addmenuitem 'manually'
jürgen Kartnaller
j.kartnaller at cable.vol.at
Wed Aug 24 14:32:38 EDT 2005
Adam Groszer wrote:
> I would like to change the automatically generated forms to template
> based one's, but I'm stuck at the configuration.
>
> <browser:addform
> schema="szscreen.interfaces.ISzerep"
> content_factory="szscreen.app.Szerep"
> label="Uj Szerep"
> name="AddSzerep.html"
> permission="zope.ManageContent"
> set_before_add="name"
> >
> </browser:addform>
>
> <browser:addMenuItem
> title="Szerep"
> class="szscreen.app.Szerep"
> permission="zope.ManageContent"
> view="AddSzerep.html"
> />
>
> I think I need something like this:
> <browser:page
> name="AddSzerep.html"
> for="szscreen.interfaces.ISzerep"
> class="szscreen.browser.helper.SzerepAddView"
> template="szerep.pt"
> permission="zope.ManageContent"
> >
> </browser:page>
>
> but the addmenuitem I cannot manage,
>
> Please help
Try to add this to browser:page :
menu="zmi_views" title="Szerep"
Jürgen
More information about the Zope3-users
mailing list