[PATCH] Keep NavigationContributor Ordering
|Reported by:||anonymous||Owned by:|
I have a small patch which applies against both 0.11-stable (r7236) branch and the trunk (r7768). It updates the use of INavigationContributors, so if one contributor returns more then one navigation item the order they are returned in is retained when they reach the main/meta navigation bar. This is of course over-ridden by the *_order settings in the configuration file.
The justification for this patch is that some plugins may wish to dynamicly generate navigation items which are perhaps based on user supplied wiki content. The order of the navigation items could be significant, so its bad to throw it away. Since the items are generated dynamically it makes adding the order to the trac.ini file impractical.
The patch includes a unit test, and an update the INavigationContributor interface documentation. I also think ticket #3695 has a little bit of bearing on this.