Does anyone know how to create a Joomla component that doesn’t create a section in the admin menu?
I’ve removed all menu entries in the manifest, but it still creates an admin menu item:
<administration>
<files folder="admin">
<filename>index.html</filename>
<filename>gallery.php</filename>
<filename>controller.php</filename>
<folder>views</folder>
<folder>models</folder>
</files>
</administration>
Any ideas?
Note: this is regarding J2.5, but 1.5 is also interesting.
Joomla will insert these menu items automatically on installation but you can get rid of them in various ways if you really want to.
The simplest way would be to change the
client_idfield for your component’s rows the menu table. Admin menu items haveclient_id = 1but if you change this to some nonsense likeclient_id = 10, they will not be shown in the admin site.Alternatively, you could delete them outright. Because the menu table uses the nested set model, you should not just delete the row. Probably your best best would be to use the delete function of the
MenusModelMenuclass.Either of these things can be done during component installation if your installer contains a script with a
postflightfunction.