如何在一个包中安装组件和路由插件?

Voj*_*ech 2 joomla joomla1.5 joomla-extensions joomla-component

我为Joomla 1.5创建了自定义组件和路由插件,以便为我的组件提供SEO URL,以及不与菜单绑定的文章和类别.现在我必须单独安装我的组件和路由插件.有没有办法在一个包装中安装?

先感谢您!Vojtech

Tec*_*hie 5

有一种更简单的方法.

什么是包裹?

包是一种扩展,用于一次性安装多个扩展.

如何创建包?

通过将扩展的所有zip文件与xml清单文件一起压缩来创建包扩展.例如,如果您有一个由以下组成的包:

  • 组件helloworld
  • 模块helloworld
  • 图书馆helloworld
  • 系统插件helloworld
  • 模板helloworld

该包应该在您的zipfile中包含以下树:

-- pkg_helloworld.xml
 -- packages <dir>
     |-- com_helloworld.zip
     |-- mod_helloworld.zip
     |-- lib_helloworld.zip
     |-- plg_sys_helloworld.zip
     |-- tpl_helloworld.zip
Run Code Online (Sandbox Code Playgroud)

pkg_helloworld.xml可以包含以下内容:

 <?xml version="1.0" encoding="UTF-8" ?>
 <extension type="package" version="1.6">
 <name>Hello World Package</name>
 <author>Hello World Package Team</author>
 <creationDate>May 2012</creationDate>
 <packagename>helloworld</packagename>
 <version>1.0.0</version>
 <url>http://www.yoururl.com/</url>
 <packager>Hello World Package Team</packager>
 <packagerurl>http://www.yoururl.com/</packagerurl>
 <description>Example package to combine multiple extensions</description>
 <update>http://www.updateurl.com/update</update>
 <files folder="packages">
   <file type="component" id="helloworld" >com_helloworld.zip</file>
   <file type="module" id="helloworld" client="site">mod_helloworld.zip</file>
   <file type="library" id="helloworld">lib_helloworld.zip</file>
   <file type="plugin" id="helloworld" group="system">plg_sys_helloworld.zip</file>
   <file type="template" id="helloworld" client="site">tpl_helloworld.zip</file>
 </files>
 </extension>
Run Code Online (Sandbox Code Playgroud)

  • 软件包从1.6开始提供,而问题是用Joomla 1.5标记的,所以未来的读者应该注意,如果他们使用Joomla 1.5,他们可能无法使用单个软件包一次安装多个组件,插件,模块等. (3认同)