Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2142

Joomla! 5.x Coding • Is it possible to copy a folder to Joomla libraries using an existing xml install file ?

$
0
0
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

Code:

<libraryname>mylib</libraryname>
then
Joomla will treat libraries/mylib as the target directory, and any files and folders will be copied under it.
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.

Statistics: Posted by secarica — Thu Dec 12, 2024 10:57 am



Viewing all articles
Browse latest Browse all 2142

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>