Plugin XMLUPDATE | |
Introduced in Tiki15 and backported to Tiki 12.5 and Tiki14.2 Use this wiki plugin to easily update selected, multiple elements of an XML file stored in a File Gallery, by using a form in the wiki page. This plugin was originally developed so that Tiki managed 'control' XML files could be downloaded by multiple Raspberry Pi's that are used for data collection and other IoT purposes, and where the updating of individual elements of the control file could be delegated to individual Tiki users. Many other uses will however be possible. |
XML file requirements | |
The XML file must also be a simple structure that does not repeat any of the node names as names are searched for irrespective of what 'level' they are at. The following file is used as a worked example in this documentation: Copy to clipboard
|
Parameters | |||||||||||||||||||||||||
Allows multiple elements of an XML file stored in a File Gallery to be updated - the File Gallery (at present) is assumed to store all files in a Directory. Introduced in Tiki 15. Required parameters are in bold .Go to the source code Preferences required: wikiplugin_xmlupdate
|
Example | |
Copy to clipboard
As you can see the node names that are being updated are simply listed in the plugin body, and as illustrated in this example, blank lines are ignored and any node names that are not in the XML file will be flagged as 'not found'. The resulting output screen shot from this example is below
The form is structured as a table and depending upon what theme is being used some padding may need to be applied to the table cells to make the form look 'nice'.
|