[Zope3-Users] Menus
Roger Ineichen
dev at projekt01.ch
Tue Feb 20 10:04:19 EST 2007
Hi David
> Subject: [Zope3-Users] Menus
>
> I am curious what methods people use to implements simple web
> site menus? It seems to be this must be a common task.
>
> So far I've done this as follows:
> 1. Create a skin
> 2. Create a content type Menu as Ordered Container 3. Create
> a content type MenuItem as contained by Menu 4. Add a Menu
> and fill it with MenuItems 4. Register Menu 5. Create a macro
> which returns the Menu using zapi.getUtility() 6. Use the
> macro in the skin, and display all the MenuItems.
Take a look at the z3c package. We buil all our menus with
this concept. Even using the "menu id" pattern from Zope3
is possible:
svn://svn.zope.org/repos/main/z3c.menu/trunk/src/z3c/menu/simple
Regards
Roger Ineichen
_____________________________
END OF MESSAGE
More information about the Zope3-users
mailing list