User tests: Successful: Unsuccessful:
This PR introduces the ability to manage associations for modules in the same way as articles, categories, and other types.
Why is this useful?
On Joomla sites, we often have blocks of information made as modules. If you want to change a module, e.g. the opening hours of a shop, Currently, you have to find the module, go into it, make a change, save it, find the next module, and so on. However, when the modules are associated, you can make changes to one module and then edit the others from there. This makes maintaining a website easier.
You have to update the javascript, because I have fixed a bug in the sidebyside script.
Setup a multilanguage site
Create a couple of modules
If you have set a module to a certain language you should be able to create new modules directly from the module. Create module is limited to a module of the same type. But you can select a different type of module. I did it this was, because the usual situation is to create a a module of the same type. In situations where you what a different module type you can do it with creating it on a different way and select the module. I am not sure if this is really a needed function but it is possible.
You can also use the associations component and manage it with the side by side view. Pretty much the save functionality as when you use the module view.
I have found a couple of things that I don't think are intended, as well as some bugs. I haven't fixed them all in this PR, but I will fix them in another PR later this week.
This needs to be documented, and I will do so once I am sure I have covered all areas. To make it run, you need to put a lot of pieces together. We have documentation for version 3.x, but not for versions 4 and above.
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_associations com_modules Language & Strings JavaScript Repository NPM Change Libraries |
| Labels |
Added:
Language Change
NPM Resource Changed
PR-6.1-dev
|
||
I have tested this item ✅ successfully on 3d0618b
Installed Multilingual Sample Data
Edited existing modules adding associations
Created new modules and created associated modules on-the-fly (same type)
Created modules of different types and associated them
Edited associated module on-the-fly
Checked Associations component
All worked as described and expected
Ready to test, PHPStan error doesn't effect the testing