[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:12:31 EST 2005

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:

        title="Title of addMenuItem Link"

tried also adding for="*"

Now I'm trying to use this CSaddMenu in a ZPT (view on a folder):

<li tal:repeat="addItem context/@@view_get_menu/CSaddMenu">[ <a 
tal:attributes="href addItem/action" 
tal:content="addItem/title">addItem</a> ]</li>

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,


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