最近我为我们的客户制作了一个自定义博客组件,在我的本地主机中它工作得很好,现在我必须为这个组件准备一个包,让我们的客户给他这个组件。我根据此链接准备包裹
http://docs.joomla.org/Components:xml_installfile
这是 XML 文件
<?xml version="1.0"?>
<install type="component" version="1.5.0">
<name>customblog</name>
<author>Jogesh Sharma</author>
<creationDate>March 2013</creationDate>
<copyright>Copyright (C) 2013 Open Source Matters. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<authorEmail>hello@webomnizz.com</authorEmail>
<authorUrl>http://webomnizz.com</authorUrl>
<version>1.5.0</version>
<description>This component manage all the Blog sections!</description>
<installfile>install.customblog.php</installfile>
<uninstallfile>uninstall.customblog.php</uninstallfile>
<files>
<filename>customblog.php</filename>
<filename>customblog.html.php</filename>
<filename>images/style.css</filename>
<filename>images/plus-icon.png</filename>
<filename>images/twitter-icon.png</filename>
<filename>images/facebook-icon.png</filename>
</files>
<install>
<sql>
<file driver="mysql">install.mysql.sql</file>
</sql>
</install>
<uninstall>
<sql>
<file driver="mysql">uninstall.mysql.sql</file>
</sql>
</uninstall>
<administration>
<menu img="js/ThemeOffice/component.png">Blog Component</menu>
<submenu>
<menu link="option=com_customblog">Blog</menu>
</submenu>
<files>
<filename>install.mysql.sql</filename>
<filename>uninstall.mysql.sql</filename>
<filename>admin.customblog.php</filename>
<filename>admin.customblog.html.php</filename>
<filename>toolbar.customblog.php</filename>
<filename>toolbar.customblog.html.php</filename>
<filename>admin.customblog.php</filename>
<filename>index.html</filename>
<filename>tables/customblog.php</filename>
</files>
</administration>
</install>
这是组件目录结构的屏幕截图:
但是在转换为 zip 文件后,当我尝试安装我的组件时,我得到了奇怪的错误:
JInstaller::install: There is already a folder called 'C:\wamp\www\joom_new\administrator\components\com_customblog\admin.customblog.php'. Please initially check whether:
• the Extension is already installed
• the file names in the XML file are spelled correctly
• there are no XML files listed inside the extension.xml file
• all of the files (not including XML files) are correctly listed in the extension.xml file and there are no duplicate entries
• there is an empty folder listed from a previous installation attempt
我不知道缺少什么,我安装了单独的 joomla1.5.x 然后尝试在上面安装然后陷入这个问题,谁能帮我摆脱这些错误?
我正在使用 joomla 1.5.26 因为我的客户需要这个版本...