Portal

Difference between revisions of "Plugin Development/en"

From Joomla! Documentation

(Importing a new version from external source)
 
(Importing a new version from external source)
Line 17: Line 17:
 
[[Category:Development]]  
 
[[Category:Development]]  
 
[[Category:Plugin Development]]
 
[[Category:Plugin Development]]
 +
[[Category:Needs to be marked for translation]]
 
</noinclude>
 
</noinclude>

Revision as of 09:00, 30 May 2015

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎русский • ‎中文(台灣)‎

This page contains many links to documentation concerning Plugin Development for Joomla 2.5 and Joomla 3.x. A good place to start is with the Reading list articles below as they provide a good introductory base of knowledge to build on.

What is a Plugin?

A plugin is a kind of Joomla! extension. Plugins provide functions which are associated with trigger events. Joomla provides a set of core plugin events, but any extension can fire (custom) events. When a particular event occurs, all plugin functions of the type associated with the event are executed in sequence. This is a powerful way of extending the functionality of Joomla. It also offers extension developers a way to allow other extensions to respond to their actions, making extensions extensible.

The Joomla! plugin architecture follows the Observer design pattern. The JPlugin class provides the means to register custom plugin code with core or custom events. The JEventDispatcher class is an event handler which calls all plugins registered for a particular event, when that event is triggered. In Joomla 4.x this has been moved to the \Joomla\Event\Dispatcher class in Joomla, and additionally follows the Mediator design pattern

See also: Component, Module, Template


The following articles will help familiarise you with Joomla! plugins. They are a good starting point to understanding and then developing plugins.

Beginner

To understand how to install and use a plugin in Joomla it is recommended to read Administration of a Plugin in Joomla!

Intermediate

To understand plugins better it is advised that you create a basic plugin for Joomla!.

To read on how to run a basic content plugin in a custom module or component you may have already developed it is recommended to read Triggering content plugins in your extension.

Advanced

To understand the principles on which the Plugin system works Plugin Developer Overview. To then implement this in a component you have designed it is recommended to read Supporting plugins in your component.


Portal:Plugin Development/en/Projects