[Zope] Help System Menu patch

Bill Anderson bill@noreboots.com
Sat, 25 Nov 2000 13:39:38 -0700


This is a multi-part message in MIME format.
--------------E2847E13986000CA03FF4A59
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


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.
Example:
  Membership
	Overview
	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


--
E PLURIBUS LINUX
--------------E2847E13986000CA03FF4A59
Content-Type: text/plain; charset=us-ascii;
 name="helpmenu.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="helpmenu.patch"

--- 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>
+<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>
 <dtml-else>


--------------E2847E13986000CA03FF4A59--