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:
These handlers could also be used in a system plugin if required.
Download this snippet.