Skip to content

Conversation

@rdeutz
Copy link
Contributor

@rdeutz rdeutz commented Jan 12, 2026

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.

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
@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators NPM Resource Changed This Pull Request can't be tested by Patchtester PR-6.1-dev labels Jan 12, 2026
rdeutz and others added 7 commits January 12, 2026 20:02
…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>
@rdeutz rdeutz added the Feature label Jan 12, 2026
@rdeutz
Copy link
Contributor Author

rdeutz commented Jan 12, 2026

Ready to test, PHPStan error doesn't effect the testing

@drmenzelit
Copy link
Contributor

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


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46671.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature Language Change This is for Translators NPM Resource Changed This Pull Request can't be tested by Patchtester PR-6.1-dev

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants