O'Reilly logo

Learning Joomla! 1.5 Extension Development by Joseph L. LeBlanc

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

Parameters for modules

The module we wrote for "Restaurant Reviews" already has logic for different display types and different data retrieval scenarios. Defining parameters for the module will make it easy for the administrators to pick and choose their desired setup. To define the parameters, we will need to create a file named mod_reviews.xml.

In addition to specifying the parameters to offer to the administrator, this XML file will also identify the copyright and license information for the modules. This is also referred to as the module's "manifest". To create the manifest, go to /modules/ mod_reviews folder, create a file named mod_reviews.xml and enter the following code into this new file:

<?xml version="1.0" encoding="utf-8"?> <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