After working with the Zope help System a bit, I got very annoyed that
there was no consistent ordering to the tree. For example, you could
repeatedly click the contents tab link, and watch it reorganize itsself.
Attached is a patch that sorts everything by id. 

Why id? Because then I can make my help menu item id's a numeric
sequence, and put the topics in a specific order.
        Membership Conventions
Rather than the order being random.

Attached is the patch. patch from the Zope root directory.
Once applied, you *don't* need to restart zope to see the change.

Bill Anderson

--- lib/python/HelpSys/menu.dtml        Sat Nov 25 13:22:45 2000
+++ lib/python/HelpSys/menu.dtml-new    Sat Nov 25 13:19:51 2000
@@ -2,7 +2,7 @@
 <dtml-call "REQUEST.set('MANAGE_TABS_NO_BANNER',1)">
 <dtml-var manage_tabs>
+<dtml-tree sort=id>
 <dtml-if "meta_type =='Help Topic'">
   <a href="<dtml-var absolute_url>" target="help_main"><dtml-var title_or_id></a>

Reply via email to