-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[6.1] Feature Module associations #46671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 6.1-dev
Are you sure you want to change the base?
Conversation
when save2copy support is false the button doesn’t exists so we need to check.
This is needed when we have to handle objects who need more params as usual like modules
administrator/components/com_modules/src/Field/Modal/ModuleField.php
Outdated
Show resolved
Hide resolved
administrator/components/com_modules/src/Field/Modal/ModuleField.php
Outdated
Show resolved
Hide resolved
administrator/components/com_modules/src/Helper/AssociationsHelper.php
Outdated
Show resolved
Hide resolved
administrator/components/com_modules/src/Helper/AssociationsHelper.php
Outdated
Show resolved
Hide resolved
administrator/components/com_modules/src/Helper/AssociationsHelper.php
Outdated
Show resolved
Hide resolved
…ld.php Co-authored-by: Brian Teeman <brian@teeman.net>
…ld.php Co-authored-by: Brian Teeman <brian@teeman.net>
…lper.php Co-authored-by: Brian Teeman <brian@teeman.net>
…lper.php Co-authored-by: Brian Teeman <brian@teeman.net>
…lper.php Co-authored-by: Brian Teeman <brian@teeman.net>
|
Ready to test, PHPStan error doesn't effect the testing |
|
I have tested this item ✅ successfully on 3d0618b All worked as described and expected This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46671. |
Summary of Changes
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.
Testing Instructions
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.
Note
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.
Link to documentations
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.