User

User:Rvsjoen/tutorial/Developing an MVC Component/Part 13

From Joomla! Documentation

Revision as of 14:49, 12 July 2011 by Rvsjoen (talk | contribs) (Created page with "= Adding component options = == Adding parameters to the database == In order to use the parameters in Joomla! we need to add a field to our table in the database. With your f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Adding component options

Adding parameters to the database

In order to use the parameters in Joomla! we need to add a field to our table in the database.

With your favorite editor, modify the following file to look like this

admin/sql/install.mysql.utf8.sql

NOTE: You WILL need to completely uninstall and reinstall the component for these changes to take effect if you have any of the previous parts installed.

Update the form definition

We are going to have to modify our helloworld form in order to add a fieldset for the parameters

With your favorite editor, modify the following file to look like this

admin/models/forms/helloworld.xml

Update the language files

With your favorite editor, modify the following files to look like this

admin/language/en-GB/en-GB.com_helloworld.ini

Installation manifest

In the installation manifest, we have updated the version number and added config.xml

helloworld.xml

Testing your component

For details on how to install the component into your Joomla! site, refer to the information provided in Part 01.


File listing

Download this part

Articles in this series

This tutorial is supported by the following versions of Joomla!

Joomla 2.5