Brian Patterson
Brian Patterson

Reputation: 1625

Updates to existing custom Joomla component

I am running Joomla 3.1.5. I have a custom component installed and I have made some minor changes to some of the files. How do I create an uploadable/installable zip file to install these changes to my production Joomla site?

Upvotes: 0

Views: 72

Answers (1)

Riccardo Zorn
Riccardo Zorn

Reputation: 5615

Please disregard the discussion on templates in the comments above.

You don't need to rename your component it seems.

If you need to install on a single site:

  • on the prodution site, install the installer you first installed on your development site
  • sync the files with a version control system such as git / rsync / scp / sftp / ftp whichever you're most comfortable with

If you need to install on multiple sites:

You need to repackage it, and add to the xml manifest any files/folders you added.

Simply explode the original zip installer somewhere on your drive, and figure out the folder structure (could be admin,site,media for example).

For each browse the custom_component_name.xml section and ensure it contains the files you added, if any.

Then copy the updated files over the folder structure, zip it, and upload it to production.

Once you do this the component will be registered in the other Joomla installation. You can also keep the copies aligned between the two servers with a code versioning system such as git.

If it's a component you plan on distributing, create a script to package it, look at the Joomla docs there's plenty of info, you could use a bash script, phing, ant, maven, choose one that suits you any will do the job

Upvotes: 1

Related Questions