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

Dealing with component configuration

The chances are that the component we are building is going to need some configuration options. Every component can store default parameters about itself.

A relationship exists between menu items and the component configuration. The configuration edited from within the component defines the default configuration. When we create a new menu item, we can modify the component configuration specifically for the menu item. This enables us to override the default configuration on a per-menu-item basis.

To define component parameters, we must create an XML metadata file called config.xml in the root of our component in the backend. The file contains a root element config, and nested within this is a params tag. In this ...

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