Desarrollando un componente MVC : Añadiendo un servidor de actualización

  1. Desarrollando un componente MVC : Introducción
  2. Desarrollando un componente MVC: Desarrollando un componente básico
  3. Desarrollando un componente MVC: Añadiendo una vista en el frontend
  4. Desarrollando un componente MVC: Añadiendo un tipo de menu al frontend
  5. Desarrollando un componente MVC: Añadiendo un modelo al frontend
  6. Desarrollando un componente MVC : Añadiendo una variable request en el tipo de menu
  7. Desarrollando un componente MVC : Usando la base de datos
  8. Desarrollando un componente MVC : Basic backend
  9. Desarrollando un componente MVC : Añadiendo gestión de idioma
  10. Desarrollando un componente MVC : Añadiendo acciones backend
  11. Desarrollando un componente MVC : Añadiendo adornos al backend
  12. Desarrollando un componente MVC : Añadiendo verificaciones
  13. Desarrollando un componente MVC : Añadiendo categorías
  14. Desarrollando un componente MVC : Añadiendo configuración
  15. Desarrollando un componente MVC : Añadiendo ACL (Access Control Levels)
  16. Desarrollando un componente MVC : Añadiendo un script de instalación-desinstalación-actualización
  17. Desarrollando un componente MVC : Usando la capacidad de filtro
  18. 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
        
 
        
                
                COM_HELLOWORLD_MENU
                
                
                
                        
                        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

Deja un comentario