Hide components on page 'new menu item' in the menu manager
When you make a new menu item, you might want to hide the components not used in the site, or hide them because you do not want any backend users to make links to them.
This is a template override to achieve hiding specific components in that list. A template override is a extra file that gets stored in the template which does not affect the core in any way, so this is no hack and you will not have any problems when updating the Joomla core.
There is no installer as Joomla does not provide install-functionality for template overrides.
How to install:
- determine which backend template you are using. If you never changed this it is 'Khepri'.
If you are not sure check at 'extensions' > 'templates' > 'administrator' to see which your default template is.
- Unzip the file
- copy-paste the folder 'com_menus' to:
- open the file:
- on line 10 at $components_to_hide, add all components you want to hide in the array and save the file.
If you want to hide specific views read in the same file from line 16-28 on how to do that: