Desarrollando un componente MVC : Añadiendo un servidor de actualización
[extoc]
Adding a updateserver definition
To add a updateserver functionality adjust the helloworld.xml to look like this.
helloworld.xml
COM_HELLOWORLD
November 2009
John Doe
john.doe@example.org
http://www.example.org
Copyright Info
License Info
0.0.15
COM_HELLOWORLD_DESCRIPTION
script.php
sql/install.mysql.utf8.sql
sql/uninstall.mysql.utf8.sql
sql/updates/mysql
index.html
helloworld.php
controller.php
views
models
language
index.html
images
index.html
config.xml
access.xml
helloworld.php
controller.php
sql
tables
models
views
controllers
helpers
language/en-GB/en-GB.com_helloworld.ini
language/en-GB/en-GB.com_helloworld.sys.ini
http://yourdomain.com/update/helloworld-update.xml
You also need to put a XML-file on your server which contains all update-informations.
helloworld-update.xml
HelloWorld
HelloWorld Component
com_helloworld
component
1.5.0
http://yourdomain.com
http://yourdomain.com/files/com_helloworld-1.5.0-final.zip
some-tag
HelloWorld Inc.
http://yourdomain.com
some-section
HelloWorld
HelloWorld Component
com_helloworld
component
1.5.0
http://yourdomain.com
http://yourdomain.com/files/com_helloworld-1.5.0-final.zip
some-tag
HelloWorld Inc.
http://yourdomain.com
some-section
HelloWorld
HelloWorld Component
com_helloworld
component
1.5.0
http://yourdomain.com
http://yourdomain.com/files/com_helloworld-1.5.0-final.zip
some-tag
HelloWorld Inc.
http://yourdomain.com
some-section
HelloWorld
HelloWorld Component
com_helloworld
component
1.5.1
http://yourdomain.com
http://yourdomain.com/files/com_helloworld-1.5.1-final.zip
some-tag
HelloWorld Inc.
http://yourdomain.com
some-section
HelloWorld
HelloWorld Component
com_helloworld
component
1.5.1
http://yourdomain.com
http://yourdomain.com/files/com_helloworld-1.5.1-final.zip
some-tag
HelloWorld Inc.
http://yourdomain.com
some-section
HelloWorld
HelloWorld Component
com_helloworld
component
1.5.1
http://yourdomain.com
http://yourdomain.com/files/com_helloworld-1.5.1-final.zip
some-tag
HelloWorld Inc.
http://yourdomain.com
some-section
You need to add a new update-node every time you publish a new release, as well as for each Joomla! version. (you will need a distinct update node for each targetplatform)
See Also
Deploying an Update Server
Managing Component Updates with Joomla!2.5 – Part 1