5. Extending Joomla! with Plugins

In this chapter, we examine how plugins work and the different types of events that can trigger plugins. We look at some core plugins and then create our own plugin, based on the user registration form we created previously.

Then we create a zip archive that allows any Joomla! website to install and use our plugin extension. Next we add some parameters to the plugin and discuss the JForm class that handles parameters. We add a language file to handle translating the text for our plugin.

Finally, we discuss some powerful things that plugins allow us to do, including overriding models, tables, and other standard Joomla classes. We finish by discussing some best practices for developing and using plugins.

What Is ...

Get Joomla!™ Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.