如何制作joomla配置xml

如何制作joomla配置xml,joomla,joomla2.5,joomla-extensions,joomla-component,Joomla,Joomla2.5,Joomla Extensions,Joomla Component,我在网上搜索,并没有找到任何解释清楚的东西 我想为我的组件和模块创建配置,但不知道从哪里开始,也不知道如何开始,如果有人知道好的教程,那就太好了。这是Joomla 2.5所需要的。有些字段是可选的,例如SQL和安装/卸载字段 <?xml version="1.0" encoding="utf-8"?> <extension type="component" version="2.5.0" methos="update"> <name>

我在网上搜索,并没有找到任何解释清楚的东西


我想为我的组件和模块创建配置,但不知道从哪里开始,也不知道如何开始,如果有人知道好的教程,那就太好了。

这是Joomla 2.5所需要的。有些字段是可选的,例如SQL和安装/卸载字段

<?xml version="1.0" encoding="utf-8"?> 
    <extension type="component" version="2.5.0" methos="update">
        <name>Hello World</name>
        <creationDate>2007-01-17</creationDate>
        <author>John Doe</author>
        <authorEmail>example@example.org</authorEmail>
        <authorUrl>http://www.example.org</authorUrl>
        <copyright>Copyright Info</copyright>
        <license>License Info with link</license>
        <version>1.0.1</version>
        <downloadUrl>http://www.example.org/downloads/myjoomlaextensions/</downloadUrl>

        <installfile>install.helloworld.php</installfile>

        <uninstallfile>uninstall.helloworld.php</uninstallfile>

        <install>
            <sql>
                <file driver="mysql" charset="utf8">install.mysql.utf8.sql</file>
                <file driver="mysql">install.mysql.nonutf8.sql</file>
            </sql>
        </install>

        <uninstall>
            <sql>
                <file driver="mysql" charset="utf8">uninstall.mysql.utf8.sql</file>
                <file driver="mysql">uninstall.mysql.nonutf8.sql</file>
            </sql>
        </uninstall>

        <files>
            <filename>index.html</filename>
            <filename>helloworld.php</filename>
            <folder>views</folder>
    </files>

    <languages>
            <language tag="en-GB">en-GB.com_test.ini</language>
            <language tag="en-GB">en-GB.com_test.sys.ini</language>
    </languages>

    <administration>

            <menu img="components/com_helloworld/images/helloworld_icon.png">Hello World</menu>
            <submenu>
                    <menu link="option=com_helloworld&amp;controller=config">Configuration</menu>
                    <menu img="icon" task="hello" controller="z" view="a" layout="b" sub="c">Hello Again!</menu>
                    <menu view="test" layout="foo">Testing Foo Layout</menu>
            </submenu>

            <files folder="admin">
                    <filename>index.html</filename>
                    <filename>admin.helloworld.php</filename>
            </files>

            <languages folder="admin">
                    <language tag="en-GB">en-GB.com_helloworld.ini</language>
                    <language tag="en-GB">en-GB.com_helloworld.sys.ini</language>
            </languages>

    </administration>    
</extension>

你好,世界
2007-01-17
无名氏
example@example.org
http://www.example.org
版权信息
许可证信息与链接
1.0.1
http://www.example.org/downloads/myjoomlaextensions/
install.helloworld.php
卸载.helloworld.php
install.mysql.utf8.sql
install.mysql.nonutf8.sql
uninstall.mysql.utf8.sql
uninstall.mysql.nonutf8.sql
index.html
helloworld.php
意见
en-GB.com_test.ini
en-GB.com_test.sys.ini
你好,世界
配置
你好!
测试Foo布局
index.html
admin.helloworld.php
en-GB.com_helloworld.ini
en-GB.com_helloworld.sys.ini