Closed (fixed)
Project:
Publish Content
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2011 at 12:18 UTC
Updated:
1 Aug 2013 at 17:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
simon georges commentedA patch doing exactly that for those wanting it.
Comment #2
hansfn commentedI agree that MENU_LOCAL_ACTION is better than MENU_LOCAL_TASK. I must admin that I was surprised the first time I clicked the "Unpublish" tab - the node was directly unpublished. (I didn't expect that from a tab.)
I tried the patch above and while it replaces the task with an action, I'm not 100% happy. I think the action link should be displayed on the "Edit page", not on the "View page". In addition some stuff could be removed.
New patch attached.
Comment #3
hansfn commentedOK, it seems there is a problem with my patch. Moving the action to the "Edit page" gives "access denied" when the action link is clicked. Argh, I don't see what I do wrong.
Comment #4
simon georges commentedAccess arguments should now be
(1, 4)since you're adding a component to the URL.The point of the module is to be as fast as possible, so I'm not in favour of moving the action to the edit tab. But if it's the will of the community, I'll stick to it ;-)
Comment #5
hansfn commentedThx for the explanation about access arguments.
I have thought a little bit more about this. I buy the argument about quick access, and it is possible to turn of the tabs in the module configuration. Maybe a solution is that you add MENU_LOCAL_ACTION (like in my patch) in addition to the tabs or display the action when the tabs are disabled?
Comment #6
simon georges commentedMaybe. Can we have the input of other people using the module? What do you think?
Comment #7
johnennew commentedThis functionality has been added as an option to the 7.x-1.x branch as part of #1948966: Switch tab to a button instead