【问题标题】:how to make joomla configuration xml如何制作joomla配置xml
【发布时间】:2012-10-27 07:17:02
【问题描述】:

我搜索了互联网,没有找到任何解释清楚的东西。

我想为我的组件和模块创建配置,但不知道从哪里开始或如何开始,如果有人知道好的教程会很棒。

【问题讨论】:

    标签: joomla joomla2.5 joomla-extensions joomla-component


    【解决方案1】:

    这是 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>
    

    【讨论】:

      猜你喜欢
      • 2022-10-20
      • 2011-05-28
      • 1970-01-01
      • 1970-01-01
      • 2019-11-27
      • 2013-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多