Timeline for Multiple media elements in manifest
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 26, 2023 at 0:04 | comment | added | Glenn Arkell | Good point about breaking if partially uninstalled, thanks. So am I understanding this correctly, because I'm installing the JSON in the component, the module will have access to this anyway? | |
Nov 23, 2023 at 9:37 | comment | added | Sharky | I understand that. But why are you even adding the JSON to the module XML? It does nothing, except cause the same file to be written twice during installation. And, in case individuals package items can be uninstalled, this introduces the risk of breaking the component. | |
Nov 22, 2023 at 22:44 | comment | added | Glenn Arkell | @Sharky - I'm not duplicating the json file in the module, just using the one in the component. I only have one json file - in the component and I'm wanting to point to this json file in the module manifest. | |
Nov 21, 2023 at 7:37 | comment | added | Sharky | What is even the point of including the JSON in module manifest? The same file will just be written twice during package installation (assuming the JSON is also included in the component manifest). | |
Nov 16, 2023 at 7:08 | comment | added | Glenn Arkell | I only have one joomla.asset.json file which is installed via the component. My install zip file contains the component and the module but I didn't want to repeat the asset file in the module when I could utilise the components assets. So yes it sounds like we are doing the same thing and it appears that having the 2 media elements within the module manifest works fine but I was concerned that it may not be wise to do it this way and suffer with the duplication. | |
Nov 15, 2023 at 6:44 | comment | added | Irata♦ | I did try once, and I can't remember whether I got it working, to load the assets from one extension so that I could refer to and use them in my other extension which I think sounds similar to what your are trying to do. From memory I got to the point where I had to load the whole component or at least load the JS/CSS assets manually before I could use them. | |
Nov 15, 2023 at 6:39 | comment | added | Irata♦ |
Is the content on the joomla.asset.json included in your installation .zip for the module that same file or a copy of the joomla.asset.json ? I would think overwriting the joomla.asset.json file of one extension during the installation of another extension could lead to confusion for anyone else looking at com_mycomponent and seeing a mismatch in the joomla.asset.json files if they aren't aware of what is going on.
|
|
Nov 13, 2023 at 2:58 | history | asked | Glenn Arkell | CC BY-SA 4.0 |