Add a option on the menu to temporally hide the administration menu.
Next time the page is rendered the menu is available again.

This option allows to workaround some issues like this: http://drupal.org/node/540120

Comments

sun’s picture

Status: Active » Closed (duplicate)

Thanks for taking the time to report this issue.

However, marking as duplicate of #502408: Move invocation/processing into hook_page_build(), which should eliminate this entire issue.
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.

mroscar’s picture

well I come up with something

First Javascript

$(document).ready(function() {
$('#page').before('<input type="button" value="Hide Admin" class="admin-show-hide" id="toggleButton">');

$('#toggleButton').click( function() {
  $('#admin-menu').toggle('5000', function(){
	if ($('#admin-menu').is(':visible')) {
	 $('#toggleButton').val('Hide Admin') 
	$('#toggleButton').css('margin-top','0');
	} else {
	$('#toggleButton').css('margin-top','-20px');

		$('#toggleButton').val('Show Admin') 
	  }
    });
  });

});

and css



input.admin-show-hide {

display:block;
position:absolute;
z-index:1100;
right:0;
    padding: 4px 10px 4px 25px;
      color: #fff;
     font-size: 11px;
     font-weight: bold;

    border: 1px solid #000;
     border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
 
      background: #000 url('../images/admin-show-hide.png') 5% center no-repeat;
      cursor: pointer;

}

input.admin-show-hide:hover {
      background: #696969 url('../images/admin-show-hide.png') 5% center no-repeat;

}
AaronBauman’s picture

Version: 6.x-3.0-alpha1 » 7.x-3.x-dev
Issue summary: View changes
Status: Closed (duplicate) » Needs review

This was not addressed in the issue upon which it was marked duplicate.
Re-opened and re-requested for 7.x

kolier’s picture

For who are interested in similar feature like this, I've made a module for this functionality: Admin Menu Toggle.
https://www.drupal.org/sandbox/kolier/2392811

truls1502’s picture

Status: Needs review » Postponed (maintainer needs more info)
Issue tags: +postponed2w

I 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! :)

truls1502’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
Issue tags: -postponed2w

This 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! :)