How to install component and route plugin in one package?

前端 未结 2 780
天命终不由人
天命终不由人 2020-12-21 15:37

I have created custom component and a route plugin for Joomla 1.5 to to provide SEO URLs for my component and also articles and categories which are not menu tied. Now I hav

2条回答
  •  星月不相逢
    2020-12-21 16:11

    There is a easier method.

    What is a package?

    A package is a extension that is used to install multiple extensions in one go.

    How do I create a package?

    A package extension is created by zipping all zip files of the extensions together with a xml manifest file. For example if you have a package composed by:

    • component helloworld
    • module helloworld
    • library helloworld
    • system plugin helloworld
    • template helloworld

    The package should have the following tree in your zipfile:

    -- pkg_helloworld.xml
     -- packages 
         |-- com_helloworld.zip
         |-- mod_helloworld.zip
         |-- lib_helloworld.zip
         |-- plg_sys_helloworld.zip
         |-- tpl_helloworld.zip
    

    The pkg_helloworld.xml could have the following contents:

     
     
     Hello World Package
     Hello World Package Team
     May 2012
     helloworld
     1.0.0
     http://www.yoururl.com/
     Hello World Package Team
     http://www.yoururl.com/
     Example package to combine multiple extensions
     http://www.updateurl.com/update
     
       com_helloworld.zip
       mod_helloworld.zip
       lib_helloworld.zip
       plg_sys_helloworld.zip
       tpl_helloworld.zip
     
     
    

提交回复
热议问题