I am trying to build dynamic menus that are brought in from a
database.  I set up the table in this structure:
CREATE TABLE auth_menu
(
  menu_id serial NOT NULL,
  group_id int4 NOT NULL,
  parent_id int4,
  auth_permission_id int4,
  title varchar(35) NOT NULL,
  url varchar(100),
  order_index int4 NOT NULL,
.....)

The top level menu is known by the fact that menu_id and group_id are
the same with a null parent_id, and then it goes parent, child.... If
the menu_id and group_id are the same, then we know its also a top
level menu, but still underneath the main_menu.  If its a bottom level
leaf, then none are the same.  I am stuck on how to build html with ul/
li lists or if it's even possible.  I am certain recursion is needed.
Does anyone have an idea where to look for a solution to this problem?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to