On Mon, Jul 21, 2003 at 03:35:45PM -0700, James Price <[EMAIL PROTECTED]> wrote:
> How does the heading weight value work?
> 
> If you change one or two panel's 'HeadingWeight' value in the navigation
> database the heading may or may not move.  It appears that, perhaps, the
> navigation menu displays the heading based upon a median value of all the
> heading weights for a given heading.  Is this correct?

As in this comment in the code (/etc/e-smith/web/functions/navigation)? :-)
      
    [...] 
    #-------------------------------------------------- 
    # generate list of headings sorted by average weight
    #-------------------------------------------------- 
    [...] 

There is an issue in that the directory is ends up being parsed in random
order by virtue of a readdir() and a (keys %files_hash). You can get
surprising results if some, but not all of a particular Heading have
their Weight value changed, especially when you have multiple languages
involved.

That code has been around for quite some time and is maybe a little too
flexible/clever. It might also be better to make use of the db defaults
mechanism in 6.0beta to create manager groups and associated weightings.

Gordon
--
 Gordon Rowell                         [EMAIL PROTECTED]
 Director, Engineering
 Mitel Networks Corporation            http://www.mitel.com/


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Searchable archive at http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to