Re: [webmin-devel] Sorting The Order of Modules in a Category
Jamie Cameron <[email protected]>
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2004-10-13 at 03:45, Michael Wray wrote:
> Aside from hacking my borrowed theme, is there a way to control the order
> Modules are listed in aside from the Display Name. It appears to me that
> the Display Name is what they are sorted on in every Theme I've used, and I
> would prefer they be sorted on some other item, such as the actual Module
> Name, so that I can control what order they appear in in the same fashion I
> do my Categories.
The only way to do this is to modify the theme code..
It would be a trivial change though, something like
@mods = &get_all_module_infos();
@mods = sort { $a->{'dir'} cmp $b->{'dir'} } @mods;
- Jamie
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel