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 ...