[Zope3-Users] Re: [Zope3-checkins] SVN: Zope3/trunk/ Ok, it's time
to bugfix since the release get much more important ; -)
Florian Lindner
mailinglists at xgm.de
Mon Mar 21 19:50:17 EST 2005
Hi Roger,
yes, my addform:
<addform
label="Add CSLink mit skin"
title="Add CSLink title"
name="AddCSLink.html"
schema="CS.Linklist.interfaces.ILink"
content_factory="CS.Linklist.link.Link"
permission="zope.Public"
layer="centershock"
menu="navMenu"
/>
Do you see any problem with that directive?
Thanks for your help. Probably I'll take your offer and zip my packages and
send it to you. I just need to strip them down a bit.
Thanks a lot,
Florian
Am Montag, 21. März 2005 20:43 schrieb Roger Ineichen:
> Hi Florian
>
> Did you also a dd a <browser:addform> like:
>
> <browser:addform
> name="addContent.html"
> label="Add Content"
> schema="tiks.content.IContent"
> content_factory="tiks.content.app.Content"
> keyword_arguments="title description body"
> permission="zope.ManageContent"
> />
>
> <browser:addMenuItem
> class="tiks.content.app.Content"
> title="Content"
> permission="zope.ManageContent"
> view="addContent.html"
> />
>
>
> Sorry I don't have this much time for bigger examples
> but perhaps this will help. Otherwise send me a zip
> of our package and I can take a look at it.
>
> Regards
> Roger Ineichen
>
> Projekt01 GmbH
> _____________________________
> END OF MESSAGE
>
> > -----Original Message-----
> > From: Florian Lindner [mailto:mailinglists at xgm.de]
> > Sent: Tuesday, March 22, 2005 1:13 AM
> > To: zope3-users at zope.org
> > Cc: Roger Ineichen
> > Subject: Re: [Zope3-checkins] SVN: Zope3/trunk/ Ok, it's time
> > to bugfix since the release get much more important ; -)
> >
> > Hello,
> > could you provide a example of the use of a add menu? I'm
> > trying here, but it
> > won't work for me.
> >
> > I'm registering a menu:
> >
> > <menu id = "CSaddMenu" />
> >
> > tried also adding interface="*"
> >
> > and a addMenuItem:
> >
> > <addMenuItem
> > title="Title of addMenuItem Link"
> > view="AddCSLink.html"
> > class="CS.Linklist.link.Link"
> > permission="zope.Public"
> > menu="CSaddMenu"
> > />
> >
> > tried also adding for="*"
> >
> >
> > Now I'm trying to use this CSaddMenu in a ZPT (view on a folder):
> >
> > <ul>
> > <li tal:repeat="addItem context/@@view_get_menu/CSaddMenu">[ <a
> > tal:attributes="href addItem/action"
> > tal:content="addItem/title">addItem</a> ]</li>
> > </ul>
> >
> > But this return a empty list.
> >
> > How is it used correctly?
> >
> > I just want to have a menu of links to my addForms. I've also
> > tried to use the
> > menu I can define in the addForm directive, but that doesn't work too.
> > See also my posting:
> > [Zope3-Users] Using add menus
> >
> > Thanks a lot,
> >
> > Florian
> >
> > Am Freitag, 18. März 2005 18:48 schrieb Roger Ineichen:
> > > Log message for revision 29569:
> > > Ok, it's time to bugfix since the release get much more
> >
> > important ;-)
> >
> > > Bugfix:
> > > Added missing layer to the continerViews menu items.
> > >
> > > Enhance:
> > > Added layer, extra, order, icon, menu and for attributes to the
> > > addMenuItem directive. This makes the addMenuItem useable
> >
> > for not only the
> >
> > > AddMenu class in the IDefaultLayer
> > >
> > > Moved:
> > > The addMenuItem directive get moved to the menumeta.py
> >
> > where was added
> >
> > > from srichters menu refactoring
> > >
> > > Test:
> > > Changed and added more tests
> > >
> > > Changed:
> > > U Zope3/trunk/doc/CHANGES.txt
> > > U
> >
> > Zope3/trunk/src/zope/app/container/browser/tests/test_directive.py
> >
> > > U Zope3/trunk/src/zope/app/publisher/browser/menumeta.py
> > > U Zope3/trunk/src/zope/app/publisher/browser/meta.zcml
> > > U Zope3/trunk/src/zope/app/publisher/browser/metaconfigure.py
> > > U Zope3/trunk/src/zope/app/publisher/browser/metadirectives.py
> > > U
> >
> > Zope3/trunk/src/zope/app/publisher/browser/tests/test_addMenuItem.py
More information about the Zope3-users
mailing list