Packaging Custom Work ::  The Template Setup File

The XML for a Template installation could look like this:

<?xml version="1.0" encoding="iso-8859-1"?>
<mosinstall type="template" version="1.0">
    <name>My Joomla! template</name>
    <creationDate>15/09/2005</creationDate>
    <author>Joomla!</author>
    <copyright>(C) 2005 Open Source Matters. All rights reserved.</copyright>
    <license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
    <authorEmail>admin@joomla.org</authorEmail>
    <authorUrl>help.joomla.org</authorUrl>
    <version>1.1</version>
    <description>This is a brief description of the template</description>
    <files>
        <filename>index.php</filename>
        <filename>template_thumbnail.png</filename>
        <filename>css/template_css.css</filename>
        <filename>images/arrow.png</filename>
        <filename>images/mt_business_back.png</filename>
        <filename>images/mt_business_bottom.png</filename>
        <filename>images/mt_business_top.png</filename>
        <filename>images/mt_menu_back.jpg</filename>
     </files>
     <media>
        <filename>self-portrait.jpg</filename>
        <filename>fruit/melon.gif</filename>
     </media>
</mosinstall>
Files are copied to /templates/[template_name]/ including any relative path except for those files in the <media> element. Files under <media> will be installed in the /images/stories directory.

For Administrator Templates you must include a "client" attribute in the element, for example:
<mosinstall type="template" client="administrator">

Please report any errors on this page to the Developer Documentation Forum.
Last Updated ( Saturday, 10 February 2007 )