Content Plugin Template for Joomla 2.5/3

January 22, 2013

Reading time ~1 minute

This is an example template that can be used for a content plugin PHP file, containing all the standard Joomla event handlers related to the content group. The file would be saved to the following location, where “pluginName” would be replaced with the name of the content plugin.

|- ...
|- plugins
|  `- content
|     `- contentPlugin
|        |- contentPlugin.php
|        `- contentPlugin.xml
|- ...

This snippet includes stubs for the following event handlers:

  • onContentAfterDelete
  • onContentAfterDisplay
  • onContentAfterSave
  • onContentPrepare
  • onContentPrepareForm
  • onCategoryChangeState
  • onContentBeforeSave
  • onContentChangeState

These handlers could also be used in a system plugin if required.

Download this snippet.

Advanced Test Driven Development for Node - Part 1

Part 1 of my attempt to port Robert C. Martin's talk '8LU:Advanced Concepts in TDD' to Node. Continue reading

Semantic versioning for retail software

Published on December 11, 2014

Better Grunt files (for organised developers)

Published on December 02, 2014