No description, website, or topics provided.
PHP JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
javascript
language
libraries
views/accessory
.gitattributes
.gitignore
CHANGELOG.md
LICENSE.md
README.md
acc.nsm_addon_updater.php
build.sh
config.php

README.md

NSM Addon Updater

Written by: Leevi Graham, Technical Director of Newism and Anthony Short based on LG Addon Updater (EE1.x)

NSM Addon Updater is an EE 2.0 accessory that checks an external RSS feed for version updates and displays them in your extension admin.

NSM Addon Updater

Developers

If you want to include NSM Addon updater support in your addon create a config.php file in your addon folder and add:

<?php
	$config['name'] = 'Addon Name';
	$config['version'] = '0.1.0';
	$config['nsm_addon_updater']['versions_xml'] = 'http://your_domain/versions.xml';

The url should point to a valid RSS 2.0 XML feed that lists individual versions of your addon as <items>. There is only one required addition to a standard feed: <ee_addon:version>1.0.0b1</ee_addon:version> which is used for version comparison.

Each feed is individually cached so that the CURL calls don't stall the loading of the CP. Additionally the calls are made via AJAX so there should be no negative affect on CP load.

Example RSS 2.0 XML Feed

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:ee_addon="http://ee-garage.com/nsm_addon_updater/#rss-xml">
	<channel>
		<title>NSM Addon Updater Changelog</title>
		<link>http://yourdomain.com/nsm.addon_updater.ee_addon/appcast.xml</link>
		<description>Most recent changes with links to updates.</description>
		<item>
			<title>Version 0.1.0</title>
			<!-- Additional tag required for NSM Addon Updater -->
			<ee_addon:version>0.1.0</ee_addon:version>
			<link>http://yourdomain.com/nsm.addon_updater.ee_addon/0.1.0/</link>
			<pubDate>Wed, 09 Jan 2006 19:20:11 +0000</pubDate>
			<description><![CDATA[
				<ul>
					<li>Initial Release</li>
				</ul>
			]]>
			</description>
			<enclosure url="http://yourdomain.com/nsm.addon_updater.ee_addon/download.zip?version=0.1.0" length="1623481" type="application/zip" />
		 </item>
	</channel>
</rss>

Acknowledgements:

Accessory approach born from discussions with @jamierumbelow