Hi
I d like to be able to move the local task to the admin menu only for certain themes, normally when using an admin theme (Seven for example) I d like to have them where they are supposed to be, but remove them on a normal front end theme.
tx

Simone

Files: 
CommentFileSizeAuthor
#5 admin_menu-do-not-move-local-tasks-on-admin-pages-2001104-5.patch1.9 KBsirtet
PASSED: [[SimpleTest]]: [MySQL] 228 pass(es). View
#2 admin_menu-do-not-move-local-tasks-on-admin-pages-2001104-2.patch1.43 KBsirtet
PASSED: [[SimpleTest]]: [MySQL] 228 pass(es). View

Comments

sirtet’s picture

+1,
I am looking for the same feature, same reason...

sirtet’s picture

Issue summary: View changes
FileSize
1.43 KB
PASSED: [[SimpleTest]]: [MySQL] 228 pass(es). View

It's not exactly what the title requests,
But this patch allows to not move the local tasks on admin pages.

I was looking for how to make the new checkbox appear as in the hierarchy of the other, with indent.
but i did not find a good howto.
also it could depend on the first, did not try that yet.

sirtet’s picture

Status: Active » Needs review
sirtet’s picture

ok, with

    '#states' => array(
      'enabled' => array(
        ':checkbox[name="admin_menu_tweak_tabs"]' => array('checked' => TRUE),
      ),
    ),

i can get the functional dependency, but how to indent this checkbox to better show the dependency visually?

Views does this via ctools #dependent, eg. on childs of the checkbox "Create a label".

sirtet’s picture

FileSize
1.9 KB
PASSED: [[SimpleTest]]: [MySQL] 228 pass(es). View

Ok, i used #prefix/#suffix to get the indent.
I was surprised i did not find a generic, easy way to get a semantic AND visual hierarchy. I did not get my head around all the #container, #parent, #child, #tree options.

But i think it's usable this way.

sirtet’s picture

Status: Needs review » Active
sirtet’s picture

Status: Active » Needs review
Chris Gillis’s picture

Any update since January?

sirtet’s picture

The patch works and has passed,
someone needs to review...

vaccinemedia’s picture

Applied cleanly and works a treat for me even when using the adminimal menu on top.

cosolom’s picture

I think it's time to include it in the next release) Year is more than enough to test

vaccinemedia’s picture

Status: Needs review » Reviewed & tested by the community