How to hide admin menu (backend) in Joomla 3?

How to hide 'System> Control Panel', 'Components', 'Help' these 3 menu items in joomla3? Sorry, not enough reputation for posting images. =. = Some user groups do not need to view and view them. I hide the rest, such as "Users", "Menu", "Content", "Extensions", but I can not hide them.

+4
source share
4 answers

Removing a help item can be easily done from:

Extensions -> Module Manager -> Administrator -> Admin Menu -> Advanced -> Help Menu: Hide

For the remaining menu items, you must make an override in the admin menu module.

You need to download:

/administrator/modules/mod_menu/tmpl/default_enabled.php

And copy:

/administrator/templates/*your_admin_template/html/mod_menu/default_enabled.php

, , (id: 18). :

$menu->addChild(new JMenuNode(JText::_('MOD_MENU_CONTROL_PANEL'), 'index.php', 'class:cpanel'));

To:

if(!in_array(18, $user->groups)){
$menu->addChild(new JMenuNode(JText::_('MOD_MENU_CONTROL_PANEL'), 'index.php', 'class:cpanel'));
}

:

if ($components)

:

if ($components && !in_array(18, $user->groups))

!

+3

, , .

- ( , /).
System → →
:










...

:
.
"" (Site/Administrator).
" "" ".
"" " " →

+1

:

  • goto
  • Click on the name of the template. In my case, "Isis"
  • Click Create Overrides
  • Click "mod_menu"

Now these files will be accessible via FTP here: public_html / administrator / templates / isis / html / mod_menu

0
source

Open the file administrator/modules/mod_menu/tmpl/default_enabled.phpfrom the template that you use for the administrative area (for example, my IsIs).

Find the following block of code

/*
 * Help Submenu
 */
if ($showhelp == 1)
{  

And change the if ( $showhelp == 1) condition to $showhelp == 0, and the help menu will disappear.

0
source

All Articles