In mod_menu a folder preset is introduced in Joomla 3.7. There is no way to override the files enabled.php or disabled.php in the administrator template like it was before or like it would be expected for module files in general.
A fallback to either use the old files or override the new files in .../preset/ should be added.
Labels |
Added:
?
|
Category | ⇒ | com_menus |
Status | New | ⇒ | Discussion |
Thanks Michael for your reply on this.
I am a bit confused on how the presets work. I expected them to be read and taken into the database only on first load, but if I change the core files, the changes show up immediately, so looks like these files are read all the time before creating the admin menu. But changing the core files is anything else than wanted.
I read pull request #13036 and there is one line of @izharaazmi:
Sounds good. Though my plan is to offer multiple presets including custom
ones. We can discuss on this.
That sounds like it is already thought of to have custom presets and going that way would be much appreciated. Using the old overrides default_enabled.php and default_disabled.php as source to override presets enabled.php and disabled.php would keep B/C. Placing custom presets in the templates override folder /html/mod_menu/enabled_mypreset.php would help adding presets without messing in the core.
Another issue I faced is that on creating a new admin menu, I could add the "Components Manager Container" and a "Components Menu Container", but trying to add a menu item to the new menu for an already existing menu item in the menu "menu", resulted into an error:
1242 - An error has occurred.
Subquery returns more than 1 row
My test installation is multilang EN and DE. But I don't think that is a multilang issue.
Testing a bit further on that tomorrow.
I was working on it and its almost done, nearly over 70%. However we were in RC state on J3.7, it wasn't possible to target 3.7 with it. Therefore, I slowed down a bit. Hope to see that soon.
@izharaazmi did you make any progress on this?
Yes. I hope we have a PR next weekend.
Hello @izharaazmi,
may I ask if the PR will introduce the override ability again that was found before J 3.7?
Yes, I have completed the work. Just not getting enough time to do the PR.
Hope it to be here in 2-3 days or so.
@brianteeman @StefanSTS I have created the PR #16451. Please review/test.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-06-03 04:38:36 |
Closed_By | ⇒ | franz-wohlkoenig |
Status | Closed | ⇒ | Discussion |
Status | Discussion | ⇒ | Closed |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/15584
closed as having PR #16451
IMO this needs some thinking. With the new admin menu management these files really should only be used to seed the default structures and any customizations should now go into the database. I don't know if we should be making the presets overridable.
Ping @izharaazmi