Closed (fixed)
Project:
Advanced Help
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
21 May 2015 at 06:49 UTC
Updated:
1 Jul 2015 at 09:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
MattWithoos commentedSimple patch attached
Comment #2
gisleThanks for the patch!
It is actually a very old feature request: #839382: Integrate with the Core Admin Help link - but your patch made it much more concrete.
Comment #3
gnugetThis patch removes the link from the admin bar and where put it? By default the administration menu can't have submenus, so the menu disappear, right? or I'm doing something wrong?
But really like this idea.
Comment #4
MattWithoos commentedThe administration menu can have submenus. So no, the menu won't disappear.
Comment #5
gnugetSorry, I wasn't talking about this module: https://www.drupal.org/project/admin_menu I was talking about the native admin menu, that one can have submenus?
Comment #6
MattWithoos commentedGood point gnuget. I spun up a core Drupal install and tested out a patch. Now, this patch will show a different menu item based on one of three conditions:
1. Help module exists, admin_menu exists: show "Advanced Help" on the submenu of "Help"
2. Help module exists, admin_menu doesn't exist: show "Advanced Help" on the main black admin menu
3. Help module doesn't exist: show "Help" on the main black admin menu
Could you test it works in your usecase and if so change to RTBC?
Comment #7
MattWithoos commentedI've gone one step further! Now, on the Core Help page, there is a tab that allows you to switch to Advanced Help. See attached patch (which combines both features).
Comment #8
MattWithoos commentedEven better: I've put these menu items under the "if the help module exists" condition, as there's no point making tabs if the Help module isn't enabled.
Comment #9
gnugetHi @MattWithoos.
I would like get feedback from gisle before to put it as RTBC but this looks good to me.
Some comments:
The comment should finish with a dot.
We want to do this? I mean, with this even the non logged users will be able to access to this tab, right?
The comment should finish with a dot.
great work, thank you.
Comment #10
MattWithoos commentedThanks for the review! I've amended and attached the new patch.
Comment #11
gisleThanks for the patch in #10.
The part that leverages on the contrib. Administration menu module to nest the Advanced Help menu link seems to work as intended.
However, the code that is supposed to add tabs to core Help page to access Advanced Help does not work on my test site. I would expect to see something like the mockup below:
But there are no tabs. And when Administration menu is not enabled, your patch has no effect.
Comment #12
gnugetI think when the administration menu module is not enabled the link should keep appearing in the admin menu, so I think what the patch does in this part is ok.
And on my side the tab appear but when I click it returns "access denied".
Comment #13
gnugetComment #14
gisleAnother attempt of adding the mockup of how it should appear if Administration menu is not enabled:
I don't think "Advanced help" should be visible in the admin toolbar when it is accessible via a separate tab on the "Help" page. The general idea here is too avoid cluttering the admin toolbar, and this applies both when Administration menu is enabled, and when it is not enabled.
Comment #15
gisleRemoved mockup from summary.
Comment #16
gisleHere is my take on uncluttering the admin toolbar.
It is based upon the mockup in #14 and does not leverage of the contrib Administration menu.
What it does is simply to remove the "Advanced menu" from the admin toolbar and makes it accessible via a tab inside "Help" (unless "Help" is disabled - then it appears on the admin toolbar).
I believe this implementation is what was requested in the original feature request: #839382: Integrate with the Core Admin Help link.
Please review.
Comment #17
gisleChanging version. Patch in #16 must be applied against dev snapshot (0ce616 - it is currently the HEAD).
Comment #18
gnugetJust one thing
Can we delete this comment?
And this is RTBC to me.
Comment #20
gisleI've deleted the comment and applied the patch.
Result is now in the latest snapshot of the 7.x-1.x branch.
Comment #21
gnugetComment #22
gnugetNow we need port this to the D8 branch.
Comment #23
gnugetComment #25
gnuget