CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Sort admin navbar items alphabetically
Pages: [1]

Author Topic: Sort admin navbar items alphabetically  (Read 605 times)

wtheaker

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • Black and Pink
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7
Sort admin navbar items alphabetically
September 15, 2014, 05:12:12 am
It would be helpful to have menu items sorted alphabetically. For example, under Localization, "Languages, Currency, Locations" precedes "Address Settings." It would be easier to find items in large lists if they were sorted in some way.

This is something I want to work on, but I can't seem to find the right template :P
Support CiviCRM by becoming a sustaining member.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Sort admin navbar items alphabetically
September 15, 2014, 08:10:59 am
I believe the menus are built using SQL from civicrm_navigation.

I can see the argument for alphabetizing the "Administer" submenus - but many of the other menus are laid out fairly logically.  Also, I believe Dave Greenberg on the core team reorganized these menus in the last year or two - and while alphabetization may not have been on his radar, it's probably worth checking in with him to see if he considered and opted against it.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Sort admin navbar items alphabetically
September 15, 2014, 11:20:31 am
It's not in a template, it's stored in the db. The menus are really tricky (not that this is impossible) because they are:
a) User configurable - the admin can rearrange menus at will
b) Localizable - menu items can appear in different languages which of course would affect abc order
c) Modular - different components and extensions can add menu items
d) Upgradable - new versions of core and extensions may add and remove menu items over time.
Try asking your question on the new CiviCRM help site.

wtheaker

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
  • Black and Pink
  • CiviCRM version: 4.5.4
  • CMS version: Drupal 7
Re: Sort admin navbar items alphabetically
September 17, 2014, 10:36:24 am
Hm if I add ORDER BY to the query would I be able to sort an unmodified admin menu?
Support CiviCRM by becoming a sustaining member.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Sort admin navbar items alphabetically
September 17, 2014, 10:39:25 am
You could. It already has ORDER BY `weight` so you could change that if you wanted. Then of course any custom ordering will be ignored.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Sort admin navbar items alphabetically

This forum was archived on 2017-11-26.