Documentation Menu

1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 1 guest online

Help Site License

The Joomla! Help Site content is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution NonCommercial ShareAlike 2.5. Some parts of this website may be subject to other licenses.
Home arrow Manual arrow 7. Packaging Custom Work arrow Template Setup File

PDF Print E-mail

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 )
 
< Prev   Next >