uninstalling joomla package not uninstalling all child extensions

时光总嘲笑我的痴心妄想 提交于 2019-12-11 09:57:52

问题


I created a joomla package including all component and module zips inside packages folder of the package. all required settings in package xml file as follows -

<extension type="package" version="2.5" method="upgrade">
........
<packagename>mypackage</packagename>
........
<files folder="packages">
    <filename type="module" id="mypackage">Ajax-Session-Module-master.zip</filename>
    <filename type="component" id="mypackage">component-develop.zip</filename>
</files>
.......

When i install package, i see those above package modules and components installed well, but when i uninstall package from extension manager->manage page , package uninstalled well but those package modules and components not uninstalled automatically!.

Where is wrong i just not getting, as i got from web that i have to put filename id as the package name in package xml file above, so is did but it did not resolved the issue. Fyi this package will be for both joomla 2.5 and 3. Please lead me to right direction asap.


回答1:


I think in the extension package, you should use <file ...> instead of <filename ...>. I tried something like this in my package xml:

<?xml version="1.0" encoding="UTF-8" ?>
<extension type="package" version="3.0">
......
......
......
<files folder="packages">
    <file type="module" id="mod_rr_test_one" client="site">mod_rr_test_one.zip</file>
    <file type="plugin" id="rr_test_one" group="content">plg_content_rr_test_one.zip</file>
</files>



来源:https://stackoverflow.com/questions/24636683/uninstalling-joomla-package-not-uninstalling-all-child-extensions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!