Answer the question
In order to leave comments, you need to log in
Where in Joomla 4 is the list of component menu items in the admin panel formed?
All health!
I'm trying to develop my component under Joomla 4. I created a blank on the designer and I'm trying to add a new entity to the component. I added template, model, view and controller files, added a menu item to component.xml, but in the admin panel in the component menu, a new item corresponding to the new entity did not appear. If I manually write the path in the address bar of the browser to the view, then I get into it.
I tried to delete files from the "native" component "Banners" - errors occur on the corresponding pages, but the menu items do not disappear anywhere.
How to work with the menu in the Joomla 4 admin panel, and what do you need to do to edit the list of component menu items?
Answer the question
In order to leave comments, you need to log in
I was answered at joomla forum .
The menu items are created during installation (via Install + package upload, or via Discover).
Adding the menu entries to the XML file after installation does not work.
Menu items are created during installation (via "Install + Package Download" or "Discover").
Adding menu items to the XML file after installation does not work.
In component.xml, in the administration section but in a slightly different format.
<menu img="class:comment">
COM_FOOS
<params>
<dashboard>foos</dashboard>
</params>
</menu>
<submenu>
<menu link="option=com_foos">
COM_FOOS
<params>
<menu-quicktask-title>COM_FOOS</menu-quicktask-title>
<menu-quicktask>index.php?option=com_foos&view=foo&layout=edit</menu-quicktask>
</params>
</menu>
<menu link="option=com_categories&extension=com_foos">
JCATEGORY
<params>
<menu-quicktask-title>JCATEGORY</menu-quicktask-title>
<menu-quicktask>index.php?option=com_categories&view=category&layout=edit&extension=com_foos</menu-quicktask>
</params>
</menu>
<menu link="option=com_fields&context=com_foos.foo">JGLOBAL_FIELDS</menu>
<menu link="option=com_fields&view=groups&context=com_foos.foo">JGLOBAL_FIELD_GROUPS</menu>
</submenu>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question