Creating the component installation XML file
Just like modules and plugins, components have an installation XML file (also known as an XML manifest) that will tell Joomla! all about the component you are installing. The installation XML file contains details such as the version number, all the files and folders used by the component, database installation file details, and component parameters.
This time we are going to create the files directly on your development website rather than in a folder on your desktop. Create a folder, /administrator/components/com_folio
, and in this folder create the usual index.html
file.
<!DOCTYPE html><title></title>
After that, create a new XML file called folio.xml
. This is the extension name without the com_
prefix. Put the following code in the file. We will then go through each line and take a look at what it all does.
<?xml version="1.0" encoding="utf-8"?> <extension type="component" version="3.0" method="upgrade"> <name...