I have a working template, that uses a working framework, where – for the framework usage – I added manually a custom library under Joomla /libraries/my_name/vendor/etc. (where the 'vendor' folder holds a library taken from github).
Now I only need to add that folder automatically at the time the framework is installed, i.e. a simple 'copy' action of the entire 'my_name/vendor/etc.' folder structure from the content of the .zip installer package to the Joomla /libraries/ folder.
Is this possible by just using the existing .xml file that normally installs the framework (under /plugins/system/etc.), or I have to add also a customized install script ? In the installer package I created a folder 'packages' that holds the entire folder structure I want to copy, but could be whatever name. Perhaps I need a second .xml file to the packages folder ? (in which case I don't know who will know about it)
In the https://manual.joomla.org/docs/building ... /manifest/ docs I read that if using then
Now I only need to add that folder automatically at the time the framework is installed, i.e. a simple 'copy' action of the entire 'my_name/vendor/etc.' folder structure from the content of the .zip installer package to the Joomla /libraries/ folder.
Is this possible by just using the existing .xml file that normally installs the framework (under /plugins/system/etc.), or I have to add also a customized install script ? In the installer package I created a folder 'packages' that holds the entire folder structure I want to copy, but could be whatever name. Perhaps I need a second .xml file to the packages folder ? (in which case I don't know who will know about it)
In the https://manual.joomla.org/docs/building ... /manifest/ docs I read that if using
Code:
<libraryname>mylib</libraryname>
but by further reading this appears to me like something for another dedicated .xml file, not just using that line in the main install .xml file.Joomla will treat libraries/mylib as the target directory, and any files and folders will be copied under it.
Statistics: Posted by secarica — Thu Dec 12, 2024 10:57 am