Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6. Plugin Design > Dealing with Plugin Settings (Parameters)

Dealing with Plugin Settings (Parameters)

To deal with plugin settings we can use the, ever handy, params tag in our XML manifest file. This example shows how we can add some simple parameters to a plugin:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/plugin-
                                                      install.dtd">
<install version="1.5" type="plugin" group="foobar">
    <name>Foobar - My Extension</name>
    <author>Author's Name</author>
    <authorEmail>Author's Email</authorEmail>
    <authorUrl>Author's Website</authorUrl>
    <creationDate>MonthName Year</creationDate>
    <copyright>Copyright Notice</copyright>
    <license>Plugin License Agreement</license>
    <version>Plugin Version</version>
    <description>Plugin Description</description>
    <files>
        <filename plugin="elementName">myextension.php</filename>
    </files>
    <params>
        <param name="aparam" type="text" label="A Parameter"
                    description="A description" />
    </params>
</install>


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial