This project is not covered by Drupal’s security advisory policy.

Admin Toggle allows site admins to toggle the display of admin items on a page with the press of a single key. This allows admins to easily preview what their site looks like to anonymous users.

This is meant to be a much more robust version of Admin Menu Hider, allowing admins to toggle all admin items rather than just the toolbar. More features are in the works.

In the box

  • Persistent toggling. Your toggle preference is saved from page to page. So, if you toggle all admin items to hidden on one page, they'll still be hidden on the next page!
  • Configurable shortcut key. By default, the ` key is used (as with Admin Menu Hider). This can be changed to any key of the user's choice.
  • Configurable selectors. HTML-/CSS-savvy users can enter custom selectors for elements to include when admin items are being toggled. Have a custom module that adds admin elements that you want to be able to toggle? Add their selectors to the Admin Toggle config page, and they'll be toggled along with everything else!
  • Permissions-based toggling. Admin Toggle looks for items that anonymous visitors to your site wouldn't be able to see—such as admin menus, action links, etc.—and selects those for toggling. This will be developed into a much more robust and configurable feature in the future.
  • Support for popular contributed modules. Out of the box, Admin Toggle supports toggling of Admin Menu and Devel elements (such as blocks).

Planned features

  • More configurable permissions. Eventually, Admin Toggle will allow you to granularly choose exactly what should and should not be toggled, based on user permissions.
  • More toggling options. Want to toggle just the admin menu, but nothing else? Or maybe just the page tabs? That's planned for a future iteration.
  • Shortcut key combinations. Would you prefer to use key combinations? This may be an option in the future.

The current dev version is safe to use; it just requires a number of bugfixes related to which elements are toggled. I am using it in production on my own sites.

Project information

Releases