vendor/Five/1.2b-r20590

view browser/tests/menu.zcml @ 0:3673ed425f80

Vendor import of Five 1.2b+ (r20590)
author fguillaume
date Fri, 02 Dec 2005 20:25:42 +0000
parents
children
line source
1 <configure xmlns="http://namespaces.zope.org/zope"
2 xmlns:meta="http://namespaces.zope.org/meta"
3 xmlns:browser="http://namespaces.zope.org/browser"
4 i18n_domain="fivetest">
6 <!-- make the zope2.Public permission work -->
7 <meta:redefinePermission from="zope2.Public" to="zope.Public" />
9 <!-- browser menu support -->
10 <browser:menu
11 id="testmenu"
12 title="Test menu"
13 />
15 <browser:menuItem
16 for="OFS.interfaces.IFolder"
17 menu="testmenu"
18 title="Test Menu Item"
19 action="seagull.html"
20 description="This is a test menu item"
21 permission="zope2.Public"
22 />
24 <browser:menuItem
25 for="OFS.interfaces.IFolder"
26 menu="testmenu"
27 title="Protected Test Menu Item"
28 action="seagull.html"
29 description="This is a protected test menu item"
30 permission="zope2.ViewManagementScreens"
31 />
33 <browser:menuItems
34 for="OFS.interfaces.IFolder"
35 menu="testmenu">
37 <menuItem
38 title="Test Menu Item 2"
39 action="parakeet.html"
40 description="This is a test menu item"
41 permission="zope2.Public"
42 />
44 <menuItem
45 title="Test Menu Item 3"
46 action="falcon.html"
47 description="This is a test menu item"
48 permission="zope2.Public"
49 />
51 <menuItem
52 title="Protected Test Menu Item 2"
53 action="falcon.html"
54 description="This is a protected test menu item"
55 permission="zope2.ViewManagementScreens"
56 />
58 </browser:menuItems>
60 <!-- page in a menu -->
61 <browser:page
62 for="OFS.interfaces.IFolder"
63 template="cockatiel.pt"
64 name="cockatiel_menu_public.html"
65 permission="zope2.Public"
66 title="Page in a menu (public)"
67 menu="testmenu"
68 />
70 <browser:page
71 for="OFS.interfaces.IFolder"
72 template="cockatiel.pt"
73 name="cockatiel_menu_protected.html"
74 permission="zope2.ViewManagementScreens"
75 title="Page in a menu (protected)"
76 menu="testmenu"
77 />
79 </configure>