php - Joomla component package updater -


i've written component joomla 3.0. want create sort of optional patchfile component add functionality it.

i don't want repackage whole component if can it, don't have merge in changes main branch every time update something.

i remember reading how can leave directories empty in install archive, long directory name still exists, , installer ignore existing files in directories.

so i'd create empty skeleton of component, directories in place new or changed files in archive, , set upgrade.

can joomla aces tell me if work or blow away existing structure in site?

you need have @ least 1 file inside directory, can have dummy index.html file purpose. let existing files not deleted, in joomla installer xml, set method upgrade

<extension type="component" version="2.5.0" method="upgrade"> 

now installer not delete existing files long have not changed in files section of above file.

please note need keep files have mentioned in files section of above file. ex:

<files folder="site">     <filename>index.html</filename>     <filename>example.php</filename>     <filename>router.php</filename>     <folder>controllers</folder>     <folder>models</folder>     <folder>views</folder> </files> 

in above example, need keep index.html, example.php , router.php. other folders mentioned above can have index.html file.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -