Managing Component Updates with Joomla!2.5 - Part 5

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
m (Component Release Files)
m (Articles in this series)
Line 7: Line 7:
 
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_4|Update SQL files]]
 
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_4|Update SQL files]]
 
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_5|Component release files]]
 
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_5|Component release files]]
 +
* [[Managing_Component_Updates_with_Joomla!1.6_-_Part_6|How to use this example]]
  
 
== Component Release Files ==
 
== Component Release Files ==

Revision as of 11:42, 31 May 2011


This tutorial is for Joomla Joomla 1.6

Contents

Articles in this series

Component Release Files

Included in this example are zip files for three releases. You will need to download all three to exercise the features of this example.

Version 1.0

The zip file can be downloaded from democompupdate_10.zip. It contains files:

  • democompupdate_10/democompupdate.xml
  • democompupdate_10/script.php
  • democompupdate_10/admin/sql/install_data.sql
  • democompupdate_10/admin/sql/uninstall.sql
  • democompupdate_10/admin/sql/updates/1.0.sql
  • democompupdate_10/site/controller.php
  • democompupdate_10/site/democompupdate.php
  • democompupdate_10/site/models/democompupdate.php
  • democompupdate_10/site/views/democompupdate/view.html.php
  • democompupdate_10/site/views/democompupdate/tmpl/default.php

Version 1.1.1

The zip file can be downloaded from democompupdate_111.zip. Diff's of democompupdate_10.zip and democompupdate_111.zip show how files have changed.

diff -r democompupdate_10/admin/sql/install_data.sql democompupdate_111/admin/sql/install_data.sql
10c10
< (1,'1.0');
---
> (1,'1.1.1');
Only in democompupdate_111/admin/sql/updates: 1.1.1.sql
Only in democompupdate_111/admin/sql/updates: 1.1.sql
diff -r democompupdate_10/democompupdate.xml democompupdate_111/democompupdate.xml
2c2
< <extension type="component" version="1.6" method="new">
---
> <extension type="component" version="1.6" method="upgrade">
8c8
< 	<version>1.0</version>
---
> 	<version>1.1.1</version>
diff -r democompupdate_10/script.php democompupdate_111/script.php
11c11
< 	private $release = '1.0';
---
> 	private $release = '1.1.1';
diff -r democompupdate_10/site/views/democompupdate/view.html.php democompupdate_111/site/views/democompupdate/view.html.php
25c25
< 		$myRev = '1.0';
---
> 		$myRev = '1.1.1';

Version 1.3

The zip file can be downloaded from democompupdate_13.zip. Diff's of democompupdate_111.zip and democompupdate_13.zip show how files have changed.

diff -r democompupdate_111/admin/sql/install_data.sql democompupdate_13/admin/sql/install_data.sql
10c10,12
< (1,'1.1.1');
---
> (1,'1.1.1'),
> (2,'1.2.1'),
> (3,'1.3');
Only in democompupdate_13/admin/sql/updates: 1.2.1.sql
Only in democompupdate_13/admin/sql/updates: 1.2.sql
Only in democompupdate_13/admin/sql/updates: 1.3.sql
diff -r democompupdate_111/democompupdate.xml democompupdate_13/democompupdate.xml
8c8
< 	<version>1.1.1</version>
---
> 	<version>1.3</version>
diff -r democompupdate_111/script.php democompupdate_13/script.php
11c11
< 	private $release = '1.1.1';
---
> 	private $release = '1.3';
diff -r democompupdate_111/site/views/democompupdate/view.html.php democompupdate_13/site/views/democompupdate/view.html.php
25c25
< 		$myRev = '1.1.1';
---
> 		$myRev = '1.3';

Contributors

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox