General
Getting & Giving Support
Administration
Design
- Tut. - Layouts and Themes
- Tut. - Navigation cookbook
- Tut. - How To section
Reference Material
Plugin Development
- Tut. - Writing a plugin
- Ref. - List of Events
- Ref. - Enabling cron jobs
- Ref. - PHPDoc
Core Development
- Ref. - PHPDoc
Press information
Wolf CMS books section
Introduction
The update_url feature allows a plugin developer to specify a url to an xml file containing information about the latest version of his/her plugin.
Important note - Please be aware that early versions of Wolf CMS will keep using the format originally specified for Frog CMS. However, no official schema describing the correct & valid usage of the format has ever been formulated.
Before version 1.0 of Wolf CMS, we will create a full schema which describes all the valid entries in a plugin updates xml file.
How to activate it
In your plugin’s index.php file, make sure you have an entry like:
'update_url' => 'http://www.wolfcms.org/plugin-versions.xml'
The location or name of the xml file are your choice as long as you make sure the link is valid and unlikely to change in the future.
Note: it is best to choose your location and name wisely. If you change the url in a later version of your plugin, all current users of the plugin will no longer be notified about any updates.
XML file structure
The xml file you point to with the update_url entry should be well-formed and conform to the example structure below. As you may notice, you can add multiple plugin entries in the same file:
<?xml version="1.0" encoding="iso-8859-1"?> <wolf-plugins> <wolf-plugin> <id>archive</id> <version>1.0.0</version> <status>stable</status> </wolf-plugin> <wolf-plugin> <id>comment</id> <version>1.1.0</version> <status>stable</status> </wolf-plugin> </wolf-plugins>
Important notes about this file structure
- The “status” entry is currently unused but this may change in the future.
- There is no formal XML Schema (yet) for this file. A formal schema will be defined before the release of Wolf CMS version 1.0.
