Closed (cannot reproduce)
Project:
Administration menu
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2010 at 19:07 UTC
Updated:
2 Nov 2018 at 21:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sunComment #2
sunRe-purposing.
Comment #3
traviscarden commentedI, for one, use the "Move local tasks to menu" feature on every one of my sites, and my designers love it because they don't have to factor tabs into their designs. In #590760: Move local tasks into menu with PHP, not JS, which has been rolled into this issue, I suggested moving local tasks into admin menu at the server with PHP instead of on the client with JavaScript for at least three reasons which I'll repeat here:
I would also like to see local tasks (when moved into admin menu) all fly out to display their children, even if you aren't on their pages. What I mean by that is that if, for example, you're viewing a Webform node, you'll see View, Edit, and Results local tasks tabs. If you hover over them, you won't get any dropdowns. However, if you navigate to the Edit screen, then you'll get dropdown options (Configuration and Form Components). The reason for this, of course, is that when the tabs are displayed staticly, in the page, there's no need to display anything outside the active path. Thus only that is shown in the HTML. Thus only that exists in admin menu when it's moved up with jQuery. But the expected behavior in a dropdown menu is that everything that exists is shown. Of course the only way to accomplish that would be on the PHP level, which I think is another good reason to move the feature there (into the PHP rather than jQuery). (@sun, I'd like to offer you a proof of concept or upload a patch, but I'm just learning module development, and I'm probably not quite at that place yet. Thank you for your understanding.)
Those are my initial thoughts and concerns. Perhaps some other folks would like to comment on how they use the feature. I find it so useful I'd be surprised if nobody else did.
Comment #4
klonos@sun: sorry for butting in, but...
Please don't remove this feature. It is already optional (enabled only through the checkbox in the module's settings) and I think a lot of people might be using it. The only reason I can think of that could make you remove it is for easier maintenance of the module. Fair enough, but instead of removing it, please consider making it a submodule and move related code there.
I propose changing the issue's title to:
Improve "Move local tasks to menu" or move the feature to a 'Administration menu Local tasks' submodule.
Thank you in advance for (re)considering this.
Comment #5
adamyonk commentedI agree with @TravisCarden. It's a very valuable feature to have.
Comment #6
Blake Peshek commentedHey guys,
As a project manager, CMS trainer, I love this tool. It's very convenient and is easy to explain to my customers. It just seems to make sense to keep everything in one location, at the top of the page.
I hope you'll keep this tool in production mode.
Thanks for considering.
Comment #7
Leeteq commentedYes, it would be great if for example we could put them in a submenu. (and NOT remove this feature..!)
Suggestion for a quick-fix, first-start, given this issue was filed 4 years ago:
I imagine that as a first functional step this could possibly be as simple as a one-line patch..:
Context / perspective / use case:
The Local tasks / Menu issue has been a long standing problem for quite a few people, with related discussions in various module queues and contexts. (a quick google search reveals that...).
From my standpoint, I am (only) looking for a non-coding/non-css/non-theme solution, to provide any content manager with; just the option to move things around and out of sight on selected pages/contexts/roles, etc., without the need of coding/assistance.
Dman has a sandbox module called "Local tasks as menu" over at
http://cgit.drupalcode.org/sandbox-dman-2042705/tree/?id=4d6390585ff2d9c...
(attached it a zipped archive of that module, please have a look and give feedback both here and to dman)
Then we have:
- https://drupal.org/project/local_tasks
- https://drupal.org/project/tabtamer
- https://drupal.org/project/blockify
- https://drupal.org/project/menu_block
- https://drupal.org/project/admin_menu (this one, obviously)
- https://drupal.org/project/password_tab (tab example with a use case complication example)
Here is an example on the various incompatibilities related to my own use case(s):
E.g. nodes and user pages.
However, considering the current status of some of the most relevant alternatives..:
Therefore, given the current state of "things", the fact that very many people have been looking high and low for some practical non-coder solution to this for many years, I suggest considering the following features in admin_menu:
Alternatively:
- I wonder if not we could have this functionality moved into the https://www.drupal.org/project/admin_menu_source module (as a kind of "sub module feature"), and let THAT module take over control over the above proposed hooked-on submenu parent... In that case, site admins can choose by role to have this functionality available also for non-admins and roles that does not have access to the main admin_menu. (that would be a feature request for that module instead, perhaps)
Edit:
Corrected a typo: (..."From my standpoint, I am (only) looking for a "non-css/non-theme solution"...)
Comment #8
Leeteq commentedComment #9
Leeteq commentedBtw., even if this module currently does free up the local tasks (content) area to allow for the real content to move up to the top of the content region, there are a couple of issues with that:
The local tasks are clearly first rendered in that location, and then "grabbed" and moved up in the admin_menu on page load (they are firstly rendered in their original location), which seems possibly unnecessarily late ("unnecessary" performance issue?) in the process, and yet still the other modules does not manage to get hold of those items before they are moved out of sight, rendering the other local tasks modules useless. (module weight issue, perhaps).
I would think that if technically possible, this should be done earlier, not rendering the local tasks in the original location at all, and yet still make those items available for the other local tasks modules even after the items are moved out of the content area.
Comment #10
Leeteq commented(some of the considerations clearly demands adjustments also in some of the other mentioned modules, but I think that the admin_menu should help making it possible to cater for the mentioned flexibility)
Comment #11
sonicthoughts commented@Leeteq - I think you nailed it for me. Trying to extend specific local menu without having to redesign another menu is very important for content authors/webmasters/etc. Will look at https://www.drupal.org/project/admin_menu_source as a temp solution, but integration with this module is very important.
Comment #12
truls1502I am sorry for no reply until now.
There are many issues regarding this module admin_menu which is a bit difficult for us to follow up since some of the issues might be already outdated, or is already fixed by the module or any other modules or itself core which means that the problem might no longer need to be fixed.
We can see that the issue has been created for a few years ago, I hope it is okay for you that I am postponing the issue, and give you around two weeks. If you still face the problem, could you tell us the step by step when until you get the error message or what is frustrated you, and a list of modules you are using related to admin_menu and a screenshot that might help us? So it makes us easier to reproduce your issue.
However, after two weeks with no feedback - we will close this issue. So in case, you noticed it after the issue is closed, do not hesitate to reopen it like and fill information which is mentioned above.
So before giving us a feedback, do you mind to test it again with our latest 7.x-3.x-dev?
Thank you for understanding! :)
Comment #13
truls1502This issue has been automatically marked as closed because it has not had recent activity after the last post.
However, if you or someone is still facing the same issue as described to the issue, could you please to re-open the issue by changing the status of the issue, and add an explanation with more details which can help us to reproduce your situation.
Again, thank you for your contributions! :)