O'Reilly logo

Mastering Joomla! 1.5 Extension and Framework Development by Chuck Lanham, James Kennard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using plugins as libraries (in lieu of library extensions)

We have mentioned the Joomla! library a number of times in the past. Although the library is a powerful part of Joomla!, it is not extensible although there are ongoing discussions within Joomla! to create library extensions and implement an extension dependency mechanism.

In the meantime we can use plugins as libraries. Plugins, although not designed for this, are ideally suited because they enable us to build up a shared directory structure based on several plugins.

To do this we must use a common plugin group for a library; we should think of this as the root library namespace. This XML defines a plugin called 'My Library - Base':

<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE install ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required