Re: Hierarchical menu model

2006-07-23 Thread Laurent Rahuel
Hi, You should better use a modified preorder tree traversal (or a nested tree) table to store your data, then you'll be able to get the whole site map with a single query. see http://www.sitepoint.com/article/hierarchical-data-database Regards, Laurent Le dimanche 23 juillet 2006 20:22, [EM

Hierarchical menu model

2006-07-23 Thread [EMAIL PROTECTED]
This model allows for site-map style menu hierarchies in the admin interface: top level -subpage --another subpage -subpage2 It feels snappy, but I bet it's inefficient due to the fact that it is recursively calling self.parent. I imagine that there's a way to optimize it. --- class MenuManag