[Xerte-dev] Re: Plugins code added to trunk

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Mar 5 09:58:57 GMT 2013


Nice one, this sounds interesting,

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Smith, John
Sent: 04 March 2013 16:02
To: xerte-dev at lists.nottingham.ac.uk
Subject: [Xerte-dev] Plugins code added to trunk

Hi all,

I've just committed the plugins code that I was working on - feel free to give it a try and let me know of any bugs/improvements/concerns and I'll address them...

This is definitely a developer tool so won't be used by the majority but will allow functionality to be change without checking in code... we could almost have a repository of plugins to allow people to do things that means they don't need any PHP experience but can customise their setup... Here is the rather lengthy text I added to the SVN


PLUGINS, ACTIONS & FILTERS: This code allows you to add a 'plugin' in the
/plugins folder which will augment functionality provided by XOT. It allows you
to create single file or folder style plugins (similar to Wordpress) which add
functionality to various 'hook' points within the page. These hooks are by no
means definitive and hopefully we can add lots more, however for filters to work
in a better way some code will need re-written in order to pass 'content'
through the filter before being used or echo-ed..

The current files should do nothing to an install. The example plugins are
commented out - remove the 'REMOVE_THIS' text from the filenames in order to
activate. The 'GCU Plugin' demonstrates some potentially useful functionality:


*         It adds a banner at the top of the page (login and editor)

*         It changes the <title> text

*         It changes the "My Projects" text to "John's Projects"

*         It adds text to Pod 1

*         It adds a title slide to data.xml on save

The plugin_one plugin simply inserts HTML comments at action hook points
throughout the page. Enable this by taking out REMOVE_THIS and then refresh the
page and view the source to reveal it's result...

Regards,

John Smith
Learning Technologist
School of Health & Life Sciences
Glasgow Caledonian University


Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130305/9ee1eef5/attachment-0001.html>


More information about the Xerte-dev mailing list