I'm not really familiar with Joomla, but I need to write a script that is supposed to list all the installed extensions and their version number, if possible. I've already done this for WordPress, TYPO3 and Drupal, but in Joomla this seems to be a pretty big pain in the ass from what I've seen so far because:
- there are three types of extensions, located in three different folders
- many extensions are present in all three folders upon installation (though the version number is usually found in only one of them)
- the version number is not documented regularly, and if it is, it's not always in a consistent way. For example I downloaded the plugin "jNews". On the website, it say "8.5.1" but in the modules folder there is a .xml file "mod_jnews.xml" with the following content:
<extension type="module" version="1.5.0" ...> ... <version>2.0</version> ... </extension>
So what is it? 8.5.1? 1.5.0? 2.0? -
Having no experience with Joomla whatsoever, I find this pretty confusing, though it may also be a misunderstanding on my part.
What I actually want to know, though is: Is there are reliable way to get all installed Joomla extensions + their version just based on the folder structure and the files within? Or any other way to get this information through a script (Python in my case)?