Book Image

Learning Joomla! 1.5 Extension Development

Book Image

Learning Joomla! 1.5 Extension Development

Overview of this book

Table of Contents (17 chapters)
Learning Joomla! 1.5 Extension Development
Credits
About the Author
About the Reviewer
Preface

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 type="module" version="1.5">
<name>Restaurant Reviews</name>
<author>Sumptuous Software</author>
<creationDate>January 2008</creationDate>
<copyright>(C) 2008</copyright>
<license&gt...