I
I
Ivan Zhuravlev2022-01-10 14:37:11
Joomla
Ivan Zhuravlev, 2022-01-10 14:37:11

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

2 answer(s)
I
Ivan Zhuravlev, 2022-01-12
@1vanguard

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.

D
Dmitry Rekun, 2022-01-11
@b2z

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&amp;view=foo&amp;layout=edit</menu-quicktask>
    </params>
    </menu>
    <menu link="option=com_categories&amp;extension=com_foos">
      JCATEGORY
      <params>
        <menu-quicktask-title>JCATEGORY</menu-quicktask-title>
        <menu-quicktask>index.php?option=com_categories&amp;view=category&amp;layout=edit&amp;extension=com_foos</menu-quicktask>
      </params>
    </menu>
  <menu link="option=com_fields&amp;context=com_foos.foo">JGLOBAL_FIELDS</menu>
  <menu link="option=com_fields&amp;view=groups&amp;context=com_foos.foo">JGLOBAL_FIELD_GROUPS</menu>
</submenu>

joomla-extensions-boilerplate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question