News:

Looking for documentation? Take a look on our wiki

Main Menu

updating plugin xml file

Started by welrachid, December 06, 2017, 11:22:55 AM

Previous topic - Next topic

welrachid

Hi guys
im trying to do a transition from one template to another, and during my "upgrade" i'll need to change some of the plugins.
Therefore i have made the vm plugins into zip's (the same way that i did when i installed them).
But im not sure how the xml file should look, because i keep getting an folder exists error.

Current xml code is:

<?xml version="1.0" encoding="UTF-8" ?>
<extension  version="3.2" type="plugin" group="vmcustom" >
    <name>VM - nemprint</name>
    <creationDate>January 2013</creationDate>
    <author>Jesper Skelgaard</author>
    <authorUrl>http://skelgaard.com</authorUrl>
    <copyright>Copyright (C) 2013 Jesper Skelgaard. All rights reserved</copyright>
    <version>0.2</version>
    <description>Calculator for VM</description>
    <languages>
        <language tag="da-DK">da-DK.plg_vmcustom_nemprint.ini</language>
        <language tag="en-GB">en-GB.plg_vmcustom_nemprint.ini</language>
    </languages>
    <files>
        <filename plugin="nemprint">nemprint.php</filename>
        <folder>nemprint</folder>
    </files>
    <vmconfig>
    </vmconfig>
   <config>
</config>
</extension>

Hope you guys can help
Thanks.
Best regards,
Wel

Studio 42

 <extension  version="3.2" type="plugin" group="vmcustom" >
to
<extension  version="3.2" type="plugin" group="vmcustom" method="upgrade">
Should solve the error if you try to update an existing extention

welrachid

Thanks worked perfect.
will i have do anything in case i will need to "install" it on a fresh installation? or do i have to make a section for upgrade and a section for install?
Best regards,
Wel

Studio 42

You dont need to do 2 section only one is accepted.
If you have two different content then you have to do 2 package, but  method="upgrade" is accepted for an install too, not only for update.

welrachid

Best regards,
Wel