media that is stored in the Media Library of a module type solution can be accessed by any other modules contained in a solution.
I have a parent solution which contains 3 modules but the modules aren’t seeing each others’ media files and I see no way of making them do so. The solution and modules were exported from 3.5 and imported into 4.0.1 then upgraded to 4.1
Under 3.x if I wanted a module to gain access to another module’s media file I could do ‘import from solution’. I’m trying to get similar results in 4.1 but I’m not succeeding.
If you want to share media, over solutions/modules the right way to do it is not to import it into both
Not depend on the the module with the media in the solution or module that want to use the media.
this doesnt share:
solution ->module1
->module2 (with media)
now module1 can touch modules2 media but solution can
solution ->module1 ->module2 (with media)
now solution and module1 can both get to the media of module2
If you dont want that (module1 shouldnt have module2)
then you can refactor to do something like: