Problem/Motivation
This issue is a basically a copy of #3222799: Order of toolbar menu items is changed after updating to 1.0.0-beta18 created separately here so that both Gin and Gin Toolbar can be patched.
The order of the menu items is changed.
Was: Content > Structure > Appearance > Extend > People > Configuration > Reports > Help

Now: Content > Structure > Appearance > Extend > People > Reports > Configuration > Help

Per the comment by @saschaeggi in the related issue, this was a desired change:
... But in our A/B Test (with content editors from various clients) found that it was easier for them to find the configuration as it was always 'at the end' of the navigation (especially for the vertical variant). So they don't have to 'scan' the navigation for the config item. That's why this change was made firsthand.
It seems to makes sense to at least let sites opt out of this behavior so that the order is determined by the menu admin UI.
Steps to reproduce
Upgrade from 1.0.0-beta17 to 1.0.0-beta18
Proposed resolution
Ultimately, if the Gin team feels this is a necessary change, maybe it should be done by changing the actual weights of the menu items so that Drupal core functionality is not ignored and site admins could control it?
For now, we could add a configuration setting for this.
Remaining tasks
- Create patch
- Test
- Merge changes
User interface changes
New config field added to settings form.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 3269548-3-gin-add-rearrange-menu-items-setting-stable-4.patch | 2.5 KB | anskelt |
| #8 | add-rearrange-menu-items-setting-rc11-update.patch | 2.69 KB | anskelt |
| #4 | after-3269548-4.png | 9.75 KB | shyam_bhatt |
| #4 | after-toggle-button-3269548-4.png | 8.84 KB | shyam_bhatt |
| #4 | before-3269548-4.png | 9.64 KB | shyam_bhatt |
Issue fork gin-3269548
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jrbAttached patch adds a new "Rearrange Admin menu items" setting to Gin.
Related patch for Gin Toolbar here: #3222799-9: Order of toolbar menu items is changed after updating to 1.0.0-beta18.
Comment #3
shyam_bhattComment #4
shyam_bhattI have checked the above patch: 3269548-2.gin_.add-rearrange-menu-items-setting.patch in the theme.



Before adding the patch, the "Rearrange Admin menu items" toggle button is not visible on the gin theme setting page.
After adding the patch, the "Rearrange Admin menu items" toggle button is visible on the gin theme setting page. Once we enable it the "configure" and "help" menus will be moved to the last position.
Comment #5
shyam_bhattComment #8
anskelt commentedStopped working for me after RC11
so i updated previous patch to work with updated release candidate.
Comment #9
leducdubleuet commentedCan we expect this option to be committed to the theme?
Comment #10
martijn de witWould be nice if the merge request is updated with the latest changes from #8
Comment #12
anskelt commentedAny ETA on when this will get into 4.0?
Comment #13
anskelt commentedadding a new updated patch again to work with 4.0
Comment #14
bohus ulrychThanks @anskelt for patch #13, it still works even with 5.0.2