-
Book Overview & Buying
-
Table Of Contents
Mastering Joomla! 1.5 Extension and Framework Development Second Edition
Plugins enable us to modify system functionality without the need to alter existing code. For example, plugins can be used to alter content before it is displayed, extend search functionality, or implement a custom authentication mechanism. As an example, this chapter shows how to replace a string with an image.
Plugins use the observer pattern to keep an eye on events. It is by listening to these events that we can modify the system functionality. However, this also means that we are limited to only modifying those parts of the system that raise events.
Plugins represent the listener, and they can define either a listener class or a listener function to handle specific events.
In this chapter, we will cover the following:
Events
Listeners
Plugin groups
Loading plugins
Using plugins as libraries (in lieu of library extensions)
Translating plugins
Dealing with plugin settings (parameters)
File naming conflicts
As we have already mentioned, plugins use the observer pattern...
Change the font size
Change margin width
Change background colour