[Zope] Dynamic Menus

Dieter Maurer dieter@handshake.de
Thu, 1 Aug 2002 22:13:29 +0200


Fearless Froggie writes:
 > With PHP and Mysql, I set up a table for categories
 > and a table for articles. In the categories table, a
 > field specified whether a particular category should
 > be added to the menu or not. In rendering the menu, I
 > checked which category the user was in, and
 > highlighted that entry in the menu. Each category
 > could have one or more articles, and one article could
 > be set as the "default" article for that category and
 > therefore automatically displayed. If there was no
 > default article, a list of links to all the articles
 > in that category was displayed. 
 > 
 > I'm wondering whether I'll need to create a "product"
 > to come up with something in zope that has the same
 > functionality.
No, this is not necessary.

   You build the same tables in MySQL as before.
   You make a Python script that interprets the tables and
   the current context and generates the menu.
   Very similar to an PHP solution.


Dieter