<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Felham</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Felham"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Felham"/>
	<updated>2026-08-23T16:04:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Amending_the_templateDetails.xml_file&amp;diff=16746</id>
		<title>Amending the templateDetails.xml file</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Amending_the_templateDetails.xml_file&amp;diff=16746"/>
		<updated>2009-11-05T20:00:25Z</updated>

		<summary type="html">&lt;p&gt;Felham: The field is translated. Put the correct fields in the admin template language file.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To ensure that your template is fully internationalised you must make sure that certain XML elements are translated and that the language definition files are listed in the &#039;&#039;templateDetails.xml&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
==== Translating templateDetails.xml ====&lt;br /&gt;
A couple of the elements in the &#039;&#039;templateDetails.xml&#039;&#039; file are used in the Template Manager and are themselves translatable. These should always be translated.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| name&lt;br /&gt;
| Name of the template. For example, Beez&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| description&lt;br /&gt;
| Description of the template.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
These fields are also shown to the user during template installation.&lt;br /&gt;
&lt;br /&gt;
==== Adding language definition files to templateDetails.xml ====&lt;br /&gt;
All language files must be declared in the &#039;&#039;templateDetails.xml&#039;&#039; file. This is done by adding two &#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;language&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039; elements for each language to be included with the template; one for the front-end strings; the other for the administrator back-end strings. For example, the two British English language files and the two German language files for the Beez template are declared as follows&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=”1.0” encoding=”utf-8” ?&amp;gt;&lt;br /&gt;
&amp;lt;install version=”1.5” type=”template”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     .........&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;languages&amp;gt;&lt;br /&gt;
        &amp;lt;language tag=”en-GB”&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
        &amp;lt;language tag=”de-DE”&amp;gt;de-DE.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
    &amp;lt;/languages&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     .........&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;administration&amp;gt;&lt;br /&gt;
        &amp;lt;languages folder=”admin”&amp;gt;&lt;br /&gt;
            &amp;lt;language tag=”en-GB”&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
            &amp;lt;language tag=”de-DE”&amp;gt;de-DE.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
        &amp;lt;/languages&amp;gt;&lt;br /&gt;
    &amp;lt;/administration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/install&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that in the administration &#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;languages&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039; tag the &#039;&#039;folder&#039;&#039; attribute is used. This is because the language files for the front-end and back-end have the same file names and so cannot exist in the same directory within the template package file. In this example, the administration language files have been placed in a sub-directory called &#039;&#039;admin&#039;&#039; to separate them from the front-end language files.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]][[Category:Languages]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Packaging_a_extension&amp;diff=14110</id>
		<title>Packaging a extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Packaging_a_extension&amp;diff=14110"/>
		<updated>2009-05-04T11:32:43Z</updated>

		<summary type="html">&lt;p&gt;Felham: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A directory with several loose files is not a convenient package for distribution. So the final step is to make a &#039;&#039;package&#039;&#039;. This is a compressed archive containing the directory structure and all the files. The package can be in &#039;&#039;&#039;ZIP&#039;&#039;&#039; format (with a &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; extension), in &#039;&#039;&#039;TAR-gzip&#039;&#039;&#039; format (with a &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; extension), or in &#039;&#039;&#039;TAR-bz2&#039;&#039;&#039; format (with a &amp;lt;tt&amp;gt;.tar.bz2&amp;lt;/tt&amp;gt; extension). &lt;br /&gt;
&lt;br /&gt;
If your template is in a directory &amp;lt;tt&amp;gt;mytemplate/&amp;lt;/tt&amp;gt; then to make the package you can connect to that directory and use commands like:&lt;br /&gt;
* &amp;lt;tt&amp;gt;tar cvvzf ../mytemplate.tar.gz *&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;zip -a -r ..\mytemplate.zip *.*&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Note to Mac OS X users ===&lt;br /&gt;
Note to template developers using Mac OS X systems: the Finder&#039;s &amp;quot;compress&amp;quot; menu item produces a usable ZIP format package, but with one catch. It stores the files in [[AppleDouble]] format, adding extra files with names beginning with &amp;quot;&amp;lt;tt&amp;gt;._&amp;lt;/tt&amp;gt;&amp;quot;. Thus it adds a file named &amp;quot;&amp;lt;tt&amp;gt;._templateDetails.xml&amp;lt;/tt&amp;gt;, which Joomla 1.5.x can sometimes misinterpret. The symptom is an error message, &amp;quot;XML Parsing Error at 1:1. Error 4: Empty document&amp;quot;. The workaround is to compress from the command line, and set a shell environment variable &amp;quot;COPYFILE_DISABLE&amp;quot; to &amp;quot;true&amp;quot; before using &amp;quot;compress&amp;quot; or &amp;quot;tar&amp;quot;. See the [[AppleDouble]] article for more information.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=File_structure_for_packaging&amp;diff=14109</id>
		<title>File structure for packaging</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=File_structure_for_packaging&amp;diff=14109"/>
		<updated>2009-05-04T11:32:23Z</updated>

		<summary type="html">&lt;p&gt;Felham: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The most basic files, such as index.php, component.php, templateDetails.xml, template_thumbnail.png, favicon.ico, params.ini should be placed directly in your template folder. The most common is to place images, CSS files, JavaScript files etc in separate folders. Joomla override files must be placed in folders in the folder &amp;quot;html&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When making the template folder, your language files should be copied to your template folder. The ones for the front end site should be placed directly in the template folder. If you have language files for the back end, these should be placed in a folder, named for instance &amp;quot;admin&amp;quot;. All the language files will be copied automatically to the right folders if stated correctly in the templateDetails.xml.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Creating_a_thumbnail_preview_image&amp;diff=14108</id>
		<title>Creating a thumbnail preview image</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Creating_a_thumbnail_preview_image&amp;diff=14108"/>
		<updated>2009-05-04T11:31:40Z</updated>

		<summary type="html">&lt;p&gt;Felham: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A thumbnail preview image should be 206 pixels in width and 150 pixels high. Recommended file format is png.&lt;br /&gt;
&lt;br /&gt;
You can take a screen shot of your site/template using the key &amp;quot;Prnt Scrn&amp;quot; on Windows or the corresponding on Mac/Linux. (There are also many programs specialized in screen shots that can be used.) After making the screen shot, paste or open the picture in an image editor such as PhotoShop or Gimp and resize and crop your image to 206x150 pixles.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Packaging_a_extension&amp;diff=14107</id>
		<title>Packaging a extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Packaging_a_extension&amp;diff=14107"/>
		<updated>2009-05-04T11:29:18Z</updated>

		<summary type="html">&lt;p&gt;Felham: Added sub headline&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{inuse}}&lt;br /&gt;
A directory with several loose files is not a convenient package for distribution. So the final step is to make a &#039;&#039;package&#039;&#039;. This is a compressed archive containing the directory structure and all the files. The package can be in &#039;&#039;&#039;ZIP&#039;&#039;&#039; format (with a &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; extension), in &#039;&#039;&#039;TAR-gzip&#039;&#039;&#039; format (with a &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; extension), or in &#039;&#039;&#039;TAR-bz2&#039;&#039;&#039; format (with a &amp;lt;tt&amp;gt;.tar.bz2&amp;lt;/tt&amp;gt; extension). &lt;br /&gt;
&lt;br /&gt;
If your template is in a directory &amp;lt;tt&amp;gt;mytemplate/&amp;lt;/tt&amp;gt; then to make the package you can connect to that directory and use commands like:&lt;br /&gt;
* &amp;lt;tt&amp;gt;tar cvvzf ../mytemplate.tar.gz *&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;zip -a -r ..\mytemplate.zip *.*&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Note to Mac OS X users ===&lt;br /&gt;
Note to template developers using Mac OS X systems: the Finder&#039;s &amp;quot;compress&amp;quot; menu item produces a usable ZIP format package, but with one catch. It stores the files in [[AppleDouble]] format, adding extra files with names beginning with &amp;quot;&amp;lt;tt&amp;gt;._&amp;lt;/tt&amp;gt;&amp;quot;. Thus it adds a file named &amp;quot;&amp;lt;tt&amp;gt;._templateDetails.xml&amp;lt;/tt&amp;gt;, which Joomla 1.5.x can sometimes misinterpret. The symptom is an error message, &amp;quot;XML Parsing Error at 1:1. Error 4: Empty document&amp;quot;. The workaround is to compress from the command line, and set a shell environment variable &amp;quot;COPYFILE_DISABLE&amp;quot; to &amp;quot;true&amp;quot; before using &amp;quot;compress&amp;quot; or &amp;quot;tar&amp;quot;. See the [[AppleDouble]] article for more information.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Amending_the_templateDetails.xml_file&amp;diff=14106</id>
		<title>Amending the templateDetails.xml file</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Amending_the_templateDetails.xml_file&amp;diff=14106"/>
		<updated>2009-05-04T11:26:12Z</updated>

		<summary type="html">&lt;p&gt;Felham: Sorry, misunderstood this before.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To ensure that your template is fully internationalised you must make sure that certain XML elements are translated and that the language definition files are listed in the &#039;&#039;templateDetails.xml&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
==== Translating templateDetails.xml ====&lt;br /&gt;
A couple of the elements in the &#039;&#039;templateDetails.xml&#039;&#039; file are used in the Template Manager and are themselves translatable. These should always be translated.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| name&lt;br /&gt;
| Name of the template. For example, Beez&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| description&lt;br /&gt;
| Description of the template.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
These fields are also shown to the user during template installation. &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;[[[ Check: These did not get translated at one time. &amp;lt;/nowiki&amp;gt;Has this been fixed? ]]]&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Adding language definition files to templateDetails.xml ====&lt;br /&gt;
All language files must be declared in the &#039;&#039;templateDetails.xml&#039;&#039; file. This is done by adding two &#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;language&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039; elements for each language to be included with the template; one for the front-end strings; the other for the administrator back-end strings. For example, the two British English language files and the two German language files for the Beez template are declared as follows&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=”1.0” encoding=”utf-8” ?&amp;gt;&lt;br /&gt;
&amp;lt;install version=”1.5” type=”template”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     .........&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;languages&amp;gt;&lt;br /&gt;
        &amp;lt;language tag=”en-GB”&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
        &amp;lt;language tag=”de-DE”&amp;gt;de-DE.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
    &amp;lt;/languages&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     .........&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;administration&amp;gt;&lt;br /&gt;
        &amp;lt;languages folder=”admin”&amp;gt;&lt;br /&gt;
            &amp;lt;language tag=”en-GB”&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
            &amp;lt;language tag=”de-DE”&amp;gt;de-DE.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
        &amp;lt;/languages&amp;gt;&lt;br /&gt;
    &amp;lt;/administration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/install&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that in the administration &#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;languages&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039; tag the &#039;&#039;folder&#039;&#039; attribute is used. This is because the language files for the front-end and back-end have the same file names and so cannot exist in the same directory within the template package file. In this example, the administration language files have been placed in a sub-directory called &#039;&#039;admin&#039;&#039; to separate them from the front-end language files.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]][[Category:Languages]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=File_structure_for_packaging&amp;diff=14105</id>
		<title>File structure for packaging</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=File_structure_for_packaging&amp;diff=14105"/>
		<updated>2009-05-04T11:22:03Z</updated>

		<summary type="html">&lt;p&gt;Felham: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{inuse}}The most basic files, such as index.php, component.php, templateDetails.xml, template_thumbnail.png, favicon.ico, params.ini should be placed directly in your template folder. The most common is to place images, CSS files, JavaScript files etc in separate folders. Joomla override files must be placed in folders in the folder &amp;quot;html&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When making the template folder, your language files should be copied to your template folder. The ones for the front end site should be placed directly in the template folder. If you have language files for the back end, these should be placed in a folder, named for instance &amp;quot;admin&amp;quot;. All the language files will be copied automatically to the right folders if stated correctly in the templateDetails.xml.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Talk:Distributing_Joomla!_templates&amp;diff=14104</id>
		<title>Talk:Distributing Joomla! templates</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Talk:Distributing_Joomla!_templates&amp;diff=14104"/>
		<updated>2009-05-04T11:09:30Z</updated>

		<summary type="html">&lt;p&gt;Felham: New page: I don&amp;#039;t quite understand what &amp;quot;How does template installation work?&amp;quot; has to do here, if this is for people who want to package their own template. Installation of templates are much more b...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I don&#039;t quite understand what &amp;quot;How does template installation work?&amp;quot; has to do here, if this is for people who want to package their own template. Installation of templates are much more basic, and covered elsewhere in the docs. --[[User:Felham|Felham]] 11:09, 4 May 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Distributing_Joomla!_templates&amp;diff=14103</id>
		<title>Distributing Joomla! templates</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Distributing_Joomla!_templates&amp;diff=14103"/>
		<updated>2009-05-04T11:08:09Z</updated>

		<summary type="html">&lt;p&gt;Felham: Changed to How_to_install_templates which already exists&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to choose a suitable license ==&lt;br /&gt;
{{:How to choose a suitable license|How to choose a suitable license}}&lt;br /&gt;
&lt;br /&gt;
== How does template installation work? ==&lt;br /&gt;
{{:How_to_install_templates|How_to_install_templates}}&lt;br /&gt;
&lt;br /&gt;
== File structure for packaging ==&lt;br /&gt;
{{:File structure for packaging|File structure for packaging}}&lt;br /&gt;
&lt;br /&gt;
== Creating a thumbnail preview image ==&lt;br /&gt;
{{:Creating a thumbnail preview image|Creating a thumbnail preview image}}&lt;br /&gt;
&lt;br /&gt;
== Packaging the template for installation ==&lt;br /&gt;
{{:Packaging the template|Packaging the template}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Tutorials]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5:Installing_a_template&amp;diff=14102</id>
		<title>J1.5:Installing a template</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5:Installing_a_template&amp;diff=14102"/>
		<updated>2009-05-04T11:07:38Z</updated>

		<summary type="html">&lt;p&gt;Felham: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Install via Admin Panel (packed template file) ===&lt;br /&gt;
&lt;br /&gt;
Log into the back-end of your site (&#039;&#039;www.your-site.com&#039;&#039;/administrator/)&lt;br /&gt;
&lt;br /&gt;
Click on: Extensions -&amp;gt; Install/Uninstall&lt;br /&gt;
&lt;br /&gt;
[[Image:Tpl_tut_install_template_1.png]]&lt;br /&gt;
&lt;br /&gt;
You see the page &amp;quot;Extension Manager&amp;quot;&lt;br /&gt;
&lt;br /&gt;
From here you can install your Templates, Plugins, Modules, Components and Languages. You have three options:&lt;br /&gt;
* Upload Package File - (select a package from your PC, upload and install it)&lt;br /&gt;
* Install from Directory - (enter the path where the package is located on your server)&lt;br /&gt;
* Install from URL - (enter the URL to the package)&lt;br /&gt;
Here, we choose the first method: Upload Package File&lt;br /&gt;
&lt;br /&gt;
Select the package from your PC and click the button &amp;quot;Upload File &amp;amp; Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:Tpl_tut_install_template_2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the package contains no errors you are done and get a success message like the one below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tpl_tut_install_template_3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install via FTP (unpacked template file) ===&lt;br /&gt;
&lt;br /&gt;
Templates can also be installed via FTP without packaging them. Simply select the template folder on your PC and upload it to your server, using your favorite FTP software. Be sure you upload the template folder to the directory: /&#039;&#039;path_to_joomla&#039;&#039;/templates/ - where /&#039;&#039;path_to_joomla&#039;&#039;/ is the location of your Joomla! installation on the server. This method is mostly used when you have created a template yourself, and do not want to have to package it to install the template, or if you want to upload more than one template at once.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Do not try to use FTP to install Components, Modules and Plugins if you are a beginner/novice. These items need database entries which have to be inserted manually if you bypass the package installer.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Beginners]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Topics]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5:Installing_a_template&amp;diff=14101</id>
		<title>J1.5:Installing a template</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5:Installing_a_template&amp;diff=14101"/>
		<updated>2009-05-04T11:06:38Z</updated>

		<summary type="html">&lt;p&gt;Felham: Double title removed, inserted headlines&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Install via Admin Panel (packed template file) ==&lt;br /&gt;
&lt;br /&gt;
Log into the back-end of your site (&#039;&#039;www.your-site.com&#039;&#039;/administrator/)&lt;br /&gt;
&lt;br /&gt;
Click on: Extensions -&amp;gt; Install/Uninstall&lt;br /&gt;
&lt;br /&gt;
[[Image:Tpl_tut_install_template_1.png]]&lt;br /&gt;
&lt;br /&gt;
You see the page &amp;quot;Extension Manager&amp;quot;&lt;br /&gt;
&lt;br /&gt;
From here you can install your Templates, Plugins, Modules, Components and Languages. You have three options:&lt;br /&gt;
* Upload Package File - (select a package from your PC, upload and install it)&lt;br /&gt;
* Install from Directory - (enter the path where the package is located on your server)&lt;br /&gt;
* Install from URL - (enter the URL to the package)&lt;br /&gt;
Here, we choose the first method: Upload Package File&lt;br /&gt;
&lt;br /&gt;
Select the package from your PC and click the button &amp;quot;Upload File &amp;amp; Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[[Image:Tpl_tut_install_template_2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the package contains no errors you are done and get a success message like the one below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tpl_tut_install_template_3.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Install via FTP (unpacked template file) ==&lt;br /&gt;
&lt;br /&gt;
Templates can also be installed via FTP without packaging them. Simply select the template folder on your PC and upload it to your server, using your favorite FTP software. Be sure you upload the template folder to the directory: /&#039;&#039;path_to_joomla&#039;&#039;/templates/ - where /&#039;&#039;path_to_joomla&#039;&#039;/ is the location of your Joomla! installation on the server. This method is mostly used when you have created a template yourself, and do not want to have to package it to install the template, or if you want to upload more than one template at once.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Do not try to use FTP to install Components, Modules and Plugins if you are a beginner/novice. These items need database entries which have to be inserted manually if you bypass the package installer.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Beginners]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Topics]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Creating_a_thumbnail_preview_image&amp;diff=14100</id>
		<title>Creating a thumbnail preview image</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Creating_a_thumbnail_preview_image&amp;diff=14100"/>
		<updated>2009-05-04T10:21:30Z</updated>

		<summary type="html">&lt;p&gt;Felham: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{inuse}}A thumbnail preview image should be 206 pixels in width and 150 pixels high. Recommended file format is png.&lt;br /&gt;
&lt;br /&gt;
You can take a screen shot of your site/template using the key &amp;quot;Prnt Scrn&amp;quot; on Windows or the corresponding on Mac/Linux. (There are also many programs specialized in screen shots that can be used.) After making the screen shot, paste or open the picture in an image editor such as PhotoShop or Gimp and resize and crop your image to 206x150 pixles.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Distributing_Joomla!_templates&amp;diff=14099</id>
		<title>Distributing Joomla! templates</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Distributing_Joomla!_templates&amp;diff=14099"/>
		<updated>2009-05-04T10:03:10Z</updated>

		<summary type="html">&lt;p&gt;Felham: Added headlines&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to choose a suitable license ==&lt;br /&gt;
{{:How to choose a suitable license|How to choose a suitable license}}&lt;br /&gt;
&lt;br /&gt;
== How does template installation work? ==&lt;br /&gt;
{{:How does template installation work?|How does template installation work?}}&lt;br /&gt;
&lt;br /&gt;
== File structure for packaging ==&lt;br /&gt;
{{:File structure for packaging|File structure for packaging}}&lt;br /&gt;
&lt;br /&gt;
== Creating a thumbnail preview image ==&lt;br /&gt;
{{:Creating a thumbnail preview image|Creating a thumbnail preview image}}&lt;br /&gt;
&lt;br /&gt;
== Packaging the template for installation ==&lt;br /&gt;
{{:Packaging the template|Packaging the template}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Tutorials]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Distributing_Joomla!_templates&amp;diff=14098</id>
		<title>Distributing Joomla! templates</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Distributing_Joomla!_templates&amp;diff=14098"/>
		<updated>2009-05-04T10:01:07Z</updated>

		<summary type="html">&lt;p&gt;Felham: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{:How to choose a suitable license|How to choose a suitable license}}&lt;br /&gt;
&lt;br /&gt;
{{:How does template installation work?|How does template installation work?}}&lt;br /&gt;
&lt;br /&gt;
{{:File structure for packaging|File structure for packaging}}&lt;br /&gt;
&lt;br /&gt;
{{:Creating a thumbnail preview image|Creating a thumbnail preview image}}&lt;br /&gt;
&lt;br /&gt;
== Packaging the template for installation ==&lt;br /&gt;
{{:Packaging the template|Packaging the template}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]]&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Tutorials]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Creating_a_basic_Joomla!_template&amp;diff=14097</id>
		<title>Creating a basic Joomla! template</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Creating_a_basic_Joomla!_template&amp;diff=14097"/>
		<updated>2009-05-04T10:00:13Z</updated>

		<summary type="html">&lt;p&gt;Felham: Moved Packiging the template text to an own article (which were created but not used)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The purpose of this tutorial is to serve as an introduction to creating Joomla! templates. It will cover the essential files and code needed to create a basic template. The code is presented so it can be cut and pasted with very little modification needed. &lt;br /&gt;
&lt;br /&gt;
== Setting up a directory structure ==&lt;br /&gt;
{{:Setting up a directory structure|Setting up a directory structure}}&lt;br /&gt;
{{:How to edit the files|How to edit the files}}&lt;br /&gt;
== Creating a basic templateDetails.xml file ==&lt;br /&gt;
{{:Creating a basic templateDetails.xml file}}&lt;br /&gt;
&lt;br /&gt;
== Creating a basic index.php file ==&lt;br /&gt;
{{:Creating a basic index file}}&lt;br /&gt;
{{:Testing the template}}&lt;br /&gt;
&lt;br /&gt;
== Packaging the template for installation ==&lt;br /&gt;
{{:Packaging_the_template}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Conclusion ==&lt;br /&gt;
&lt;br /&gt;
You should now have created a template that works. It won&#039;t look like much yet. The best thing to do now is start experimenting with the layout.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Templates]]&lt;br /&gt;
[[Category:Tutorials]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Packaging_a_extension&amp;diff=14096</id>
		<title>Packaging a extension</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Packaging_a_extension&amp;diff=14096"/>
		<updated>2009-05-04T09:59:04Z</updated>

		<summary type="html">&lt;p&gt;Felham: Moved text from Editing Tutorial:Creating a basic Joomla! template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{inuse}}&lt;br /&gt;
A directory with several loose files is not a convenient package for distribution. So the final step is to make a &#039;&#039;package&#039;&#039;. This is a compressed archive containing the directory structure and all the files. The package can be in &#039;&#039;&#039;ZIP&#039;&#039;&#039; format (with a &amp;lt;tt&amp;gt;.zip&amp;lt;/tt&amp;gt; extension), in &#039;&#039;&#039;TAR-gzip&#039;&#039;&#039; format (with a &amp;lt;tt&amp;gt;.tar.gz&amp;lt;/tt&amp;gt; extension), or in &#039;&#039;&#039;TAR-bz2&#039;&#039;&#039; format (with a &amp;lt;tt&amp;gt;.tar.bz2&amp;lt;/tt&amp;gt; extension). &lt;br /&gt;
&lt;br /&gt;
If your template is in a directory &amp;lt;tt&amp;gt;mytemplate/&amp;lt;/tt&amp;gt; then to make the package you can connect to that directory and use commands like:&lt;br /&gt;
* &amp;lt;tt&amp;gt;tar cvvzf ../mytemplate.tar.gz *&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;zip -a -r ..\mytemplate.zip *.*&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note to template developers using Mac OS X systems: the Finder&#039;s &amp;quot;compress&amp;quot; menu item produces a usable ZIP format package, but with one catch. It stores the files in [[AppleDouble]] format, adding extra files with names beginning with &amp;quot;&amp;lt;tt&amp;gt;._&amp;lt;/tt&amp;gt;&amp;quot;. Thus it adds a file named &amp;quot;&amp;lt;tt&amp;gt;._templateDetails.xml&amp;lt;/tt&amp;gt;, which Joomla 1.5.x can sometimes misinterpret. The symptom is an error message, &amp;quot;XML Parsing Error at 1:1. Error 4: Empty document&amp;quot;. The workaround is to compress from the command line, and set a shell environment variable &amp;quot;COPYFILE_DISABLE&amp;quot; to &amp;quot;true&amp;quot; before using &amp;quot;compress&amp;quot; or &amp;quot;tar&amp;quot;. See the [[AppleDouble]] article for more information.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Setting_up_a_directory_structure&amp;diff=14095</id>
		<title>Setting up a directory structure</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Setting_up_a_directory_structure&amp;diff=14095"/>
		<updated>2009-05-04T09:54:53Z</updated>

		<summary type="html">&lt;p&gt;Felham: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To make the most basic template, &#039;&#039;&#039;create a new folder&#039;&#039;&#039; in the &#039;&#039;&amp;quot;templates&amp;quot;&#039;&#039; folder. Name this folder after your template i.e. &amp;quot;mynewtemplate&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Using a text editor (or dedicated editor such as [[Adobe Dreamweaver]]) &#039;&#039;&#039;create the files &amp;quot;index.php&amp;quot; and &amp;quot;templateDetails.xml&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To keep things organized, make &#039;&#039;&#039;2 new folders called &amp;quot;images&amp;quot; and &amp;quot;css&amp;quot;&#039;&#039;&#039;. Inside the &amp;quot;css&amp;quot; folder create a file called &amp;quot;style.css&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Although it is fine to place all your CSS code directly in your &amp;quot;index.php&amp;quot; file to start, many web developers prefer to place their CSS code in a separate file that can be linked from multiple pages using the &amp;quot;link&amp;quot; tag.&lt;br /&gt;
&lt;br /&gt;
This is the most basic practical setup.&lt;br /&gt;
&lt;br /&gt;
Outline of folder and file structure:&lt;br /&gt;
* &#039;&#039;&#039;mynewtemplate/&#039;&#039;&#039;&lt;br /&gt;
** &amp;lt;u&amp;gt;css/&amp;lt;/u&amp;gt;&lt;br /&gt;
*** &#039;&#039;style.css&#039;&#039;&lt;br /&gt;
** &amp;lt;u&amp;gt;images/&amp;lt;/u&amp;gt;&lt;br /&gt;
** &#039;&#039;index.php&#039;&#039;&lt;br /&gt;
** &#039;&#039;component.php&#039;&#039;&lt;br /&gt;
** &#039;&#039;templateDetails.xml&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=What_is_the_purpose_of_the_templateDetails.xml_file%3F&amp;diff=14093</id>
		<title>What is the purpose of the templateDetails.xml file?</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=What_is_the_purpose_of_the_templateDetails.xml_file%3F&amp;diff=14093"/>
		<updated>2009-05-04T09:38:56Z</updated>

		<summary type="html">&lt;p&gt;Felham: /* File Structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightTOC}}&lt;br /&gt;
The templateDetails.xml file holds a variety of meta-data used by the [[Screen.templates.15|Template Manager]] in installation and maintenance. It is helpful to recognize the different sections of the file.  Typically, each section of data is indented to make the file more readable, but this indentation is not necessary. &lt;br /&gt;
&lt;br /&gt;
===Basic Details===&lt;br /&gt;
The initial display of the Template Manager shows a list of available templates and basic details relating to the template.  Each of these bits of information is gathered from the templateDetails.xml file.&lt;br /&gt;
&lt;br /&gt;
[[Image:template_details_basic.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;install version=&amp;quot;1.5&amp;quot; type=&amp;quot;template&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;rhuk_milkyway&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;creationDate&amp;gt;11/20/06&amp;lt;/creationDate&amp;gt;&lt;br /&gt;
    &amp;lt;author&amp;gt;Andy Miller&amp;lt;/author&amp;gt;&lt;br /&gt;
    &amp;lt;authorEmail&amp;gt;rhuk@rockettheme.com.com&amp;lt;/authorEmail&amp;gt;&lt;br /&gt;
    &amp;lt;authorUrl&amp;gt;http://www.rockettheme.com&amp;lt;/authorUrl&amp;gt;&lt;br /&gt;
    &amp;lt;copyright&amp;gt;&amp;lt;/copyright&amp;gt;&lt;br /&gt;
    &amp;lt;license&amp;gt;GNU/GPL&amp;lt;/license&amp;gt;&lt;br /&gt;
    &amp;lt;version&amp;gt;1.0.2&amp;lt;/version&amp;gt;&lt;br /&gt;
    &amp;lt;description&amp;gt;TPL_RHUK_MILKYWAY&amp;lt;/description&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===File Structure===&lt;br /&gt;
All files related to the template are listed.  Each filename contains full path information starting at the template root.  The Administrator&#039;s Installer uses this information when storing the files during installation.&lt;br /&gt;
&lt;br /&gt;
A small portion of the files listed in the rhuk_milkyway template is given below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;files&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;index.php&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;templateDetails.xml&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;template_thumbnail.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;params.ini&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;images/arrow.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;images/indent1.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
    &amp;lt;/files&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optional and highly recommended file structure --&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;files&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;index.php&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;component.php&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;templateDetails.xml&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;template_thumbnail.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;params.ini&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;folder&amp;gt;images/&amp;lt;/folder&amp;gt;&lt;br /&gt;
        &amp;lt;folder&amp;gt;css/&amp;lt;/folder&amp;gt;&lt;br /&gt;
    &amp;lt;/files&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Languages===&lt;br /&gt;
Some templates may include language files to allow translation of static text in the template.  Notice that two language files are shown below.  The first holds the language file for text that will be viewed by the User.  The second, placed within &amp;lt;administration&amp;gt; tags, is for text that will be viewed by the Administrator.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;languages&amp;gt;&lt;br /&gt;
	&amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
    &amp;lt;/languages&amp;gt;&lt;br /&gt;
    &amp;lt;administration&amp;gt;&lt;br /&gt;
	&amp;lt;languages folder=&amp;quot;admin&amp;quot;&amp;gt;&lt;br /&gt;
	    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
	&amp;lt;/languages&amp;gt;&lt;br /&gt;
    &amp;lt;/administration&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Module Positions===&lt;br /&gt;
The available [[module_positions|Module Positions]] that can be used in the template are defined.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;positions&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;breadcrumb&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;left&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;right&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;top&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;user1&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;user2&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;user3&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;user4&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;footer&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;debug&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;syndicate&amp;lt;/position&amp;gt;&lt;br /&gt;
    &amp;lt;/positions&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
A template may offer display options that can be chosen by the Administrator in the Template Manager.  For instance, the rhuk_milkyway template allows the Administrator to change the border colors, change the background color, and define the display width.  &lt;br /&gt;
&lt;br /&gt;
[[Image:template_details_params.png]]&lt;br /&gt;
&lt;br /&gt;
An example of adding a parameter and its values is shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;params&amp;gt;&lt;br /&gt;
	&amp;lt;param name=&amp;quot;colorVariation&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;white&amp;quot; label=&amp;quot;Color Variation&amp;quot; description=&amp;quot;Color variation to use&amp;quot;&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;blue&amp;quot;&amp;gt;Blue&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;red&amp;quot;&amp;gt;Red&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;green&amp;quot;&amp;gt;Green&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;orange&amp;quot;&amp;gt;Orange&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;black&amp;quot;&amp;gt;Black&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;white&amp;quot;&amp;gt;White&amp;lt;/option&amp;gt;&lt;br /&gt;
	&amp;lt;/param&amp;gt;&lt;br /&gt;
    &amp;lt;/params&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more information about working with Parameters, see:&lt;br /&gt;
&lt;br /&gt;
: [[Defining a parameter in templateDetails.xml]]&lt;br /&gt;
: [[Retrieving parameter data in a template file]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]][[Category:Topics]][[Category:Beginners]]&lt;br /&gt;
[[Category:Parameters]]&lt;br /&gt;
[[Category:Template FAQ]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=What_is_the_purpose_of_the_templateDetails.xml_file%3F&amp;diff=14092</id>
		<title>What is the purpose of the templateDetails.xml file?</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=What_is_the_purpose_of_the_templateDetails.xml_file%3F&amp;diff=14092"/>
		<updated>2009-05-04T09:36:22Z</updated>

		<summary type="html">&lt;p&gt;Felham: /* File Structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RightTOC}}&lt;br /&gt;
The templateDetails.xml file holds a variety of meta-data used by the [[Screen.templates.15|Template Manager]] in installation and maintenance. It is helpful to recognize the different sections of the file.  Typically, each section of data is indented to make the file more readable, but this indentation is not necessary. &lt;br /&gt;
&lt;br /&gt;
===Basic Details===&lt;br /&gt;
The initial display of the Template Manager shows a list of available templates and basic details relating to the template.  Each of these bits of information is gathered from the templateDetails.xml file.&lt;br /&gt;
&lt;br /&gt;
[[Image:template_details_basic.png]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;install version=&amp;quot;1.5&amp;quot; type=&amp;quot;template&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;rhuk_milkyway&amp;lt;/name&amp;gt;&lt;br /&gt;
    &amp;lt;creationDate&amp;gt;11/20/06&amp;lt;/creationDate&amp;gt;&lt;br /&gt;
    &amp;lt;author&amp;gt;Andy Miller&amp;lt;/author&amp;gt;&lt;br /&gt;
    &amp;lt;authorEmail&amp;gt;rhuk@rockettheme.com.com&amp;lt;/authorEmail&amp;gt;&lt;br /&gt;
    &amp;lt;authorUrl&amp;gt;http://www.rockettheme.com&amp;lt;/authorUrl&amp;gt;&lt;br /&gt;
    &amp;lt;copyright&amp;gt;&amp;lt;/copyright&amp;gt;&lt;br /&gt;
    &amp;lt;license&amp;gt;GNU/GPL&amp;lt;/license&amp;gt;&lt;br /&gt;
    &amp;lt;version&amp;gt;1.0.2&amp;lt;/version&amp;gt;&lt;br /&gt;
    &amp;lt;description&amp;gt;TPL_RHUK_MILKYWAY&amp;lt;/description&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===File Structure===&lt;br /&gt;
All files related to the template are listed.  Each filename contains full path information starting at the template root.  The Administrator&#039;s Installer uses this information when storing the files during installation.&lt;br /&gt;
&lt;br /&gt;
A small portion of the files listed in the rhuk_milkyway template is given below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;files&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;index.php&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;component.php&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;templateDetails.xml&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;template_thumbnail.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;params.ini&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;images/arrow.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;images/indent1.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
    &amp;lt;/files&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Optional and highly recommended file structure --&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;files&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;index.php&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;templateDetails.xml&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;template_thumbnail.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;filename&amp;gt;params.ini&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;folder&amp;gt;images/&amp;lt;/folder&amp;gt;&lt;br /&gt;
        &amp;lt;folder&amp;gt;css/&amp;lt;/folder&amp;gt;&lt;br /&gt;
    &amp;lt;/files&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Languages===&lt;br /&gt;
Some templates may include language files to allow translation of static text in the template.  Notice that two language files are shown below.  The first holds the language file for text that will be viewed by the User.  The second, placed within &amp;lt;administration&amp;gt; tags, is for text that will be viewed by the Administrator.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;languages&amp;gt;&lt;br /&gt;
	&amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
    &amp;lt;/languages&amp;gt;&lt;br /&gt;
    &amp;lt;administration&amp;gt;&lt;br /&gt;
	&amp;lt;languages folder=&amp;quot;admin&amp;quot;&amp;gt;&lt;br /&gt;
	    &amp;lt;language tag=&amp;quot;en-GB&amp;quot;&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
	&amp;lt;/languages&amp;gt;&lt;br /&gt;
    &amp;lt;/administration&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Module Positions===&lt;br /&gt;
The available [[module_positions|Module Positions]] that can be used in the template are defined.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;positions&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;breadcrumb&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;left&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;right&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;top&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;user1&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;user2&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;user3&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;user4&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;footer&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;debug&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;position&amp;gt;syndicate&amp;lt;/position&amp;gt;&lt;br /&gt;
    &amp;lt;/positions&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
A template may offer display options that can be chosen by the Administrator in the Template Manager.  For instance, the rhuk_milkyway template allows the Administrator to change the border colors, change the background color, and define the display width.  &lt;br /&gt;
&lt;br /&gt;
[[Image:template_details_params.png]]&lt;br /&gt;
&lt;br /&gt;
An example of adding a parameter and its values is shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;params&amp;gt;&lt;br /&gt;
	&amp;lt;param name=&amp;quot;colorVariation&amp;quot; type=&amp;quot;list&amp;quot; default=&amp;quot;white&amp;quot; label=&amp;quot;Color Variation&amp;quot; description=&amp;quot;Color variation to use&amp;quot;&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;blue&amp;quot;&amp;gt;Blue&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;red&amp;quot;&amp;gt;Red&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;green&amp;quot;&amp;gt;Green&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;orange&amp;quot;&amp;gt;Orange&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;black&amp;quot;&amp;gt;Black&amp;lt;/option&amp;gt;&lt;br /&gt;
	    &amp;lt;option value=&amp;quot;white&amp;quot;&amp;gt;White&amp;lt;/option&amp;gt;&lt;br /&gt;
	&amp;lt;/param&amp;gt;&lt;br /&gt;
    &amp;lt;/params&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For more information about working with Parameters, see:&lt;br /&gt;
&lt;br /&gt;
: [[Defining a parameter in templateDetails.xml]]&lt;br /&gt;
: [[Retrieving parameter data in a template file]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]][[Category:Topics]][[Category:Beginners]]&lt;br /&gt;
[[Category:Parameters]]&lt;br /&gt;
[[Category:Template FAQ]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Creating_a_basic_templateDetails.xml_file&amp;diff=14091</id>
		<title>Creating a basic templateDetails.xml file</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Creating_a_basic_templateDetails.xml_file&amp;diff=14091"/>
		<updated>2009-05-04T09:34:24Z</updated>

		<summary type="html">&lt;p&gt;Felham: Added the file component.php&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &amp;lt;tt&amp;gt;templateDetails.xml&amp;lt;/tt&amp;gt; file is essential. Without it, your template won&#039;t be seen by Joomla!. The file holds key &amp;quot;metadata&amp;quot; about the template. &lt;br /&gt;
&lt;br /&gt;
Lets look at an example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE install PUBLIC &amp;quot;-//Joomla! 1.5//DTD template 1.0//EN&amp;quot;&lt;br /&gt;
 &amp;quot;http://dev.joomla.org/xml/1.5/template-install.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;install version=&amp;quot;1.5&amp;quot; type=&amp;quot;template&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;name&amp;gt;mynewtemplate&amp;lt;/name&amp;gt;&lt;br /&gt;
	&amp;lt;creationDate&amp;gt;2008-05-01&amp;lt;/creationDate&amp;gt;&lt;br /&gt;
	&amp;lt;author&amp;gt;John Doe&amp;lt;/author&amp;gt;&lt;br /&gt;
	&amp;lt;authorEmail&amp;gt;john@example.com&amp;lt;/authorEmail&amp;gt;&lt;br /&gt;
	&amp;lt;authorUrl&amp;gt;http://www.example.com&amp;lt;/authorUrl&amp;gt;&lt;br /&gt;
	&amp;lt;copyright&amp;gt;John Doe 2008&amp;lt;/copyright&amp;gt;&lt;br /&gt;
	&amp;lt;license&amp;gt;GNU/GPL&amp;lt;/license&amp;gt;&lt;br /&gt;
	&amp;lt;version&amp;gt;1.0.2&amp;lt;/version&amp;gt;&lt;br /&gt;
	&amp;lt;description&amp;gt;My New Template&amp;lt;/description&amp;gt;&lt;br /&gt;
	&amp;lt;files&amp;gt;&lt;br /&gt;
		&amp;lt;filename&amp;gt;index.php&amp;lt;/filename&amp;gt;&lt;br /&gt;
		&amp;lt;filename&amp;gt;component.php&amp;lt;/filename&amp;gt;&lt;br /&gt;
		&amp;lt;filename&amp;gt;templateDetails.xml&amp;lt;/filename&amp;gt;&lt;br /&gt;
		&amp;lt;filename&amp;gt;template_thumbnail.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
		&amp;lt;filename&amp;gt;images/background.png&amp;lt;/filename&amp;gt;&lt;br /&gt;
		&amp;lt;filename&amp;gt;css/style.css&amp;lt;/filename&amp;gt;&lt;br /&gt;
	&amp;lt;/files&amp;gt;&lt;br /&gt;
	&amp;lt;positions&amp;gt;&lt;br /&gt;
		&amp;lt;position&amp;gt;breadcrumb&amp;lt;/position&amp;gt;&lt;br /&gt;
		&amp;lt;position&amp;gt;left&amp;lt;/position&amp;gt;&lt;br /&gt;
		&amp;lt;position&amp;gt;right&amp;lt;/position&amp;gt;&lt;br /&gt;
		&amp;lt;position&amp;gt;top&amp;lt;/position&amp;gt;&lt;br /&gt;
		&amp;lt;position&amp;gt;user1&amp;lt;/position&amp;gt;&lt;br /&gt;
		&amp;lt;position&amp;gt;user2&amp;lt;/position&amp;gt;&lt;br /&gt;
		&amp;lt;position&amp;gt;user3&amp;lt;/position&amp;gt;&lt;br /&gt;
		&amp;lt;position&amp;gt;user4&amp;lt;/position&amp;gt;&lt;br /&gt;
		&amp;lt;position&amp;gt;footer&amp;lt;/position&amp;gt;&lt;br /&gt;
	&amp;lt;/positions&amp;gt;&lt;br /&gt;
&amp;lt;/install&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
So, as you can see, we have a set of information between markup tags ( the &amp;amp;lt;thing&amp;gt; ). Your best approach is to cut and paste this into your &amp;quot;templateDetails.xml&amp;quot; file and change the relevant bits (such as &amp;lt;name&amp;gt; &amp;lt;author&amp;gt; ).&lt;br /&gt;
&lt;br /&gt;
The &amp;amp;lt;files&amp;gt; part should contain all the files that you use - you possibly don&#039;t know what they are called yet - don&#039;t worry update it later.&lt;br /&gt;
&lt;br /&gt;
Leave the positions as they are - these are a common set so you will be able to switch easily from the standard templates.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Amending_the_templateDetails.xml_file&amp;diff=14040</id>
		<title>Amending the templateDetails.xml file</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Amending_the_templateDetails.xml_file&amp;diff=14040"/>
		<updated>2009-04-28T15:33:15Z</updated>

		<summary type="html">&lt;p&gt;Felham: There is no folder called &amp;quot;admin&amp;quot;, so deleted that section. Adding the folder=&amp;quot;admin&amp;quot; is not necessary, since we use the administration tags before. See JA Purity for proof of this.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To ensure that your template is fully internationalised you must make sure that certain XML elements are translated and that the language definition files are listed in the &#039;&#039;templateDetails.xml&#039;&#039; file.&lt;br /&gt;
&lt;br /&gt;
==== Translating templateDetails.xml ====&lt;br /&gt;
A couple of the elements in the &#039;&#039;templateDetails.xml&#039;&#039; file are used in the Template Manager and are themselves translatable. These should always be translated.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| name&lt;br /&gt;
| Name of the template. For example, Beez&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| description&lt;br /&gt;
| Description of the template.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
These fields are also shown to the user during template installation. &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;[[[ Check: These did not get translated at one time. &amp;lt;/nowiki&amp;gt;Has this been fixed? ]]]&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Adding language definition files to templateDetails.xml ====&lt;br /&gt;
All language files must be declared in the &#039;&#039;templateDetails.xml&#039;&#039; file. This is done by adding two &#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;language&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039; elements for each language to be included with the template; one for the front-end strings; the other for the administrator back-end strings. For example, the two British English language files and the two German language files for the Beez template are declared as follows&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=”1.0” encoding=”utf-8” ?&amp;gt;&lt;br /&gt;
&amp;lt;install version=”1.5” type=”template”&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     .........&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;languages&amp;gt;&lt;br /&gt;
        &amp;lt;language tag=”en-GB”&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
        &amp;lt;language tag=”de-DE”&amp;gt;de-DE.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
    &amp;lt;/languages&amp;gt;&lt;br /&gt;
&lt;br /&gt;
     .........&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;administration&amp;gt;&lt;br /&gt;
        &amp;lt;languages&amp;gt;&lt;br /&gt;
            &amp;lt;language tag=”en-GB”&amp;gt;en-GB.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
            &amp;lt;language tag=”de-DE”&amp;gt;de-DE.tpl_beez.ini&amp;lt;/language&amp;gt;&lt;br /&gt;
        &amp;lt;/languages&amp;gt;&lt;br /&gt;
    &amp;lt;/administration&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/install&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the language files for the back-end are placed automatically in the folders &#039;&#039;en-GB&#039;&#039; and &#039;&#039;de-DE&#039;&#039; in &#039;&#039;administrator/language/&#039;&#039;, if the tags and administration hierarchy as stated above is used.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]][[Category:Languages]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Creating_a_basic_index_file&amp;diff=14039</id>
		<title>Creating a basic index file</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Creating_a_basic_index_file&amp;diff=14039"/>
		<updated>2009-04-28T14:41:41Z</updated>

		<summary type="html">&lt;p&gt;Felham: System CSS files are not linked to automatically using the jdoc include head, so added info about that. Also added the echo this template code.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The index.php file becomes the core of every page that Joomla! delivers. Essentially, you make a page (like any html page) but place PHP code where the content of your site should go. Here is the bare-bones code ready for you to cut and paste.&lt;br /&gt;
&lt;br /&gt;
Lets start at the top:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php defined( &#039;_JEXEC&#039; ) or die( &#039;Restricted access&#039; );?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;br /&gt;
    &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; &lt;br /&gt;
   xml:lang=&amp;quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&amp;quot; lang=&amp;quot;&amp;lt;?php echo $this-&amp;gt;language; ?&amp;gt;&amp;quot; &amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The first line stops naughty people looking at your coding and getting up to bad things. The second tells the browser (and webbots) what sort of page it is. The third line says what language the site is in.&lt;br /&gt;
&lt;br /&gt;
Now the header for real:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;jdoc:include type=&amp;quot;head&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/system/css/system.css&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/system/css/general.css&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;&amp;lt;?php echo $this-&amp;gt;baseurl ?&amp;gt;/templates/&amp;lt;?php echo $this-&amp;gt;template?&amp;gt;/css/style.css&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first line gets Joomla to put the correct header information in. This includes the page title, meta information as well as system JavaScript. &lt;br /&gt;
The rest creates links to two system style sheets and to your own style sheet (if it&#039;s named style.css and is located in the css folder).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now for the main body:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;top&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;jdoc:include type=&amp;quot;component&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;jdoc:include type=&amp;quot;modules&amp;quot; name=&amp;quot;bottom&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Amazingly, this will suffice! Yes, its a very basic layout, but it will do the job. Everything else will be done by Joomla!. Note: you will need to ensure your menu is set to go into the &amp;quot;top&amp;quot; [[Screen.modules.edit.15#Details|module position]].  &lt;br /&gt;
&lt;br /&gt;
Finish it off - one last bit:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;View the [[Testing the template|full source code]] of this template.&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=User:Felham&amp;diff=14025</id>
		<title>User:Felham</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=User:Felham&amp;diff=14025"/>
		<updated>2009-04-27T13:25:55Z</updated>

		<summary type="html">&lt;p&gt;Felham: New page: I&amp;#039;m a Joomla user from Sweden. You can find me with the same nick name on Joomla&amp;#039;s Forum.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I&#039;m a Joomla user from Sweden. You can find me with the same nick name on Joomla&#039;s Forum.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Talk:Using_Class_Suffixes&amp;diff=14024</id>
		<title>Talk:Using Class Suffixes</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Talk:Using_Class_Suffixes&amp;diff=14024"/>
		<updated>2009-04-27T13:23:34Z</updated>

		<summary type="html">&lt;p&gt;Felham: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Great tutorial, but there is nothing about Menu Class Suffixes in the text, it only says in the headlines etc. that Menu Class Suffixes is going to be written about, but there is nothing - only Module Class Suffix again.&lt;br /&gt;
&lt;br /&gt;
I added info about the menu class suffix function. Better to come with solutions than just complain... ;)&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Using_Class_Suffixes&amp;diff=14023</id>
		<title>Using Class Suffixes</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Using_Class_Suffixes&amp;diff=14023"/>
		<updated>2009-04-27T13:22:44Z</updated>

		<summary type="html">&lt;p&gt;Felham: Added about Menu Class Suffixes and moved the part about Module Class Suffixes that were under Menu Class Suffixes to where it belongs (under Module Class Suffixes), and also added new sub headlines.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{review}}&lt;br /&gt;
This tutorial will show you how to use Page, Module, and Menu Class Suffixes in Joomla! 1.5 to fine-tune the appearance of your site. For the tutorial, we will assume you have the Joomla! 1.5.9 Sample site available.&lt;br /&gt;
&lt;br /&gt;
==Background==&lt;br /&gt;
Joomla! creates HTML pages that use [[Glossary#Cascading_Style_Sheet_.28CSS.29|Cascading Style Sheets]] to control the appearance of the page. This includes things like fonts, colors, margins, and background. The CSS files are part of your template.&lt;br /&gt;
&lt;br /&gt;
When Joomla! creates a page, it creates different CSS classes that are then referenced in the CSS file to specify which style will apply to which parts of the HTML page. These class names are pre-programmed into Joomla!. But Joomla! allows you to modify or add CSS classes by way of the Class Suffix parameters. This lets you fine-tune the appearance of specific pages with no programming and very little work. The best way to understand this is to see specific examples.&lt;br /&gt;
&lt;br /&gt;
==When Would You Use a Class Suffix?==&lt;br /&gt;
Say, for example, that your website contains a number of Section Blog layouts, each for a different Section. If you are happy to have all of these pages styled the same way, then you wouldn&#039;t need to use a Page Class Suffix. However, say you want each of these sections styled differently than the others. For example, maybe you want a different background color or image for each different section.&lt;br /&gt;
&lt;br /&gt;
Or say that you want the heading on your front page to look different than the heading on other pages.&lt;br /&gt;
&lt;br /&gt;
In both of these cases, if you modify the styling in your &amp;quot;template.css&amp;quot; file for the standard CSS classes, it will affect all Menu Items that use these CSS classes. For example, if you change the style for the CSS class &amp;quot;componentheading&amp;quot;, it will affect all of the Menu Items that use this class.&lt;br /&gt;
&lt;br /&gt;
However, if you add a unique Page Class Suffix to a Menu Item, then Joomla! will create new CSS classes for each individual Menu Item so you can style each one differently.&lt;br /&gt;
&lt;br /&gt;
==Page Class Suffix==&lt;br /&gt;
Before you start, make sure you have the Joomla! sample website available. Also, make sure the default template is set to &amp;quot;rhuk_milkyway&amp;quot; (in the Extensions &amp;amp;rarr; Template Manager). &lt;br /&gt;
&lt;br /&gt;
===How It Works Without a Page Class Suffix===&lt;br /&gt;
Before we add a Page Class Suffix, let&#039;s see how this pages works without one. In the front end, navigate to Example Pages &amp;amp;rarr; Section Blog. In your browser, select the option to view the page source code. For example, in Firefox, press Ctrl+U. In Internet Explorer, select View &amp;amp;rarr; Source. In Safari, select View &amp;amp;rarr; View Source.&lt;br /&gt;
&lt;br /&gt;
Using the &amp;quot;Find&amp;quot; command, find the first occurrence of the word &amp;quot;componentheading&amp;quot;. It should look like the following: &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;componentheading&amp;quot;&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Browse down the file and find the following tags: &lt;br /&gt;
:&amp;lt;pre&amp;gt;&amp;lt;table class=&amp;quot;blog&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt; &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;&amp;lt;table class=&amp;quot;contentpaneopen&amp;quot;&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
:&amp;lt;pre&amp;gt;&amp;lt;td class=&amp;quot;contentheading&amp;quot; width=&amp;quot;100%&amp;quot;&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
:&amp;lt;pre&amp;gt;&amp;lt;table class=&amp;quot;contentpaneopen&amp;quot;&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&#039;&#039;Note: The following screenshots were made using the free Firefox add-in called &amp;quot;Firebug&amp;quot;. Firebug allows you to quickly see the relationship between the HTML elements in your source and the text and graphics shown on the page.  It is a very handy tool, and you can get it [https://addons.mozilla.org/en-US/firefox/addon/1843 here]. There is also a free video tutorial about using Firebug with Joomla! available [[Tutorial:Using_Firebug_With_Your_Joomla_Website|here]].&#039;&#039;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The screenshot below shows you the &amp;quot;componentheading&amp;quot; class. It is the page title area above the blog article.&lt;br /&gt;
&lt;br /&gt;
[[Image:Componentheading_class_firebug.png]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows you the entire &amp;quot;blog&amp;quot; class. This is the outer table into which all of the articles will fit.&lt;br /&gt;
&lt;br /&gt;
[[Image:Blog_class_firebug.png]]&lt;br /&gt;
&lt;br /&gt;
The next screenshot shows you the &amp;quot;contentpaneopen&amp;quot; class for an article heading. This includes the article title and the PDF, Print, and Email icons to the right.&lt;br /&gt;
&lt;br /&gt;
[[Image:Contentpaneopen_class_title_firebug.png]]&lt;br /&gt;
&lt;br /&gt;
This screenshot shows you the &amp;quot;contentpaneopen&amp;quot; class for the body of the article. This includes the author and date information as well as the actual article text.&lt;br /&gt;
&lt;br /&gt;
[[Image:Contentpaneopen_class_article_firebug.png]]&lt;br /&gt;
&lt;br /&gt;
So this gives us a good understanding of how Joomla! allows us to style the elements on a Section Blog layout. Joomla! writes out these classes as part of the HTML. And the template contains CSS that provides the styling information for these various elements and classes.&lt;br /&gt;
&lt;br /&gt;
===Page Class Suffix (No Space)===&lt;br /&gt;
Now that we see how this works without a Page Class Suffix, let&#039;s try it with one. In the back end, navigate to Menus &amp;amp;rarr; Example Pages and click on &amp;quot;Section Blog&amp;quot;. This should display the &amp;quot;Menu Item: [Edit]&amp;quot; screen for the Section Blog Layout. Click Parameters (System) to show the System Parameters. In the &amp;quot;Page Class Suffix&amp;quot; field enter the value &amp;quot;_myBlogSuffix&amp;quot; and click the Save button.&lt;br /&gt;
&lt;br /&gt;
Now, go back to the front end and again navigate to Example Pages &amp;amp;rarr; Section Blog. Notice right away that we lost the styling for the page and article titles. Let&#039;s look closer to see why. &lt;br /&gt;
&lt;br /&gt;
Using the browser &amp;quot;Find&amp;quot; command, find the first occurrence of &amp;quot;_myBlogSuffix&amp;quot;. It is in a &amp;quot;div&amp;quot; tag and looks like this: &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;componentheading_myBlogSuffix&amp;quot;&amp;gt;&amp;lt;/pre&amp;gt; If you look through the source, you should also see the following classes: &amp;lt;code&amp;gt;blog_myBlogSuffix&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;contentpaneopen_myBlogSuffix&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;contentheading_myBlogSuffix&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
By adding the Page Class Suffix, we &#039;&#039;changed&#039;&#039; all of these class names. That means that special styling in the CSS file that refers to the &amp;quot;base&amp;quot; class names (like componentheading, blog, and so on) will not be applied, since those classes no longer exist on the page.&lt;br /&gt;
&lt;br /&gt;
Now, you can fix this problem by editing your templates CSS file to add the same styling for the new classes (for example, &amp;quot;componentheading_myBlogSuffix&amp;quot;). But there is a much easier way to do this -- simply by adding a leading space to the parameter.&lt;br /&gt;
&lt;br /&gt;
===Page Class Suffix (With a Leading Space)===&lt;br /&gt;
Again in the back end, go back to Menus &amp;amp;rarr; Example Pages &amp;amp;rarr; Section Blog. We&#039;re going to change the value of the Page Class Suffix. This time we&#039;re going to enter in a leading space and call it &amp;lt;space&amp;gt; + &amp;quot;myBlogClass&amp;quot;, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Page_class_suffix_space.png]]&lt;br /&gt;
&lt;br /&gt;
Now, go back to the front end and re-display the Example Pages &amp;amp;rarr; Section Blog. Notice that our styling is back! Let&#039;s look at the HTML source to see what is going on. Open the source and find the first occurrence of &amp;quot;myBlogClass&amp;quot;. It should like this: &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;componentheading myBlogClass&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt; Because we put a leading space in the Page Class Suffix, we created a second class instead of changing the name of the first class (which is allowed and supported by all modern browsers). So we didn&#039;t break any of the existing CSS styling for this page. (One warning: we need to make sure the new class name is different than any of the other class names used on the page. Otherwise, we might get styling we don&#039;t want.)&lt;br /&gt;
&lt;br /&gt;
===Add CSS Styling to New Class===&lt;br /&gt;
&lt;br /&gt;
At this point, we&#039;ve created a new CSS class in the HTML to allow for some new styling. Now we need to use this new class to actually change the look of our page. The first thing we need to do is find the applicable CSS file. In this case, it is &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/rhuk_milkyway/css/template.css&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Let&#039;s say we want to add a background color, but only to this specific Section Blog. (Remember, if we wanted to just change all of the Section Blog pages in our site, we could just change the CSS styling for the base classes, such as &amp;quot;componentheading&amp;quot; or &amp;quot;blog&amp;quot;.) We need to do is figure out which area (&amp;quot;componentheading&amp;quot;, &amp;quot;blog&amp;quot;, or &amp;quot;contentpaneopen&amp;quot;) we want to style. Say we just wanted to style the &amp;quot;componentheading&amp;quot; area. &lt;br /&gt;
&lt;br /&gt;
First, let&#039;s use the CSS selector &amp;quot;div.myBlogClass&amp;quot; and add the following code to the end of our CSS file:&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
/* Custom Styling */&lt;br /&gt;
div.myBlogClass {&lt;br /&gt;
	background-color: #FFE4E1; /* mistyrose */	&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result is that the page heading now has the background color, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Div_styling_example.png|center|frame]]&lt;br /&gt;
&lt;br /&gt;
Now this works fine in our example, because the other classes are defined for &amp;quot;table&amp;quot; tags and not &amp;quot;div&amp;quot; tags. But it is normally better to be more specific in our style selector by styling only those elements that have both the desired base class and the new class. For example, let&#039;s replace the code above with the following code: &lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;/* Custom Styling */&lt;br /&gt;
.blog.myBlogClass {&lt;br /&gt;
	background-color: #FAFAD2; /* lightgoldenrod */	&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This specifies that the new style will only be applied to elements that have both the &amp;quot;blog&amp;quot; and the &amp;quot;myBlogClass&amp;quot; styles. This gives us the background color over the entire &amp;quot;blog&amp;quot; area, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Blog_styling_example.png]]&lt;br /&gt;
&lt;br /&gt;
The great thing about creating a &#039;&#039;new&#039;&#039; class (with the leading space trick) is that we don&#039;t need to copy all of the existing styling for the base classes. We can just focus on the new styling that we want. &lt;br /&gt;
&lt;br /&gt;
Now in this example, we focused on the Section Blog layout. The class names for different components might be different, but the process will be the same. The table below shows some common Joomla! layouts and a list of class names that can have Page Class Suffixes added.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Layout&lt;br /&gt;
! CSS Class Names Used&lt;br /&gt;
|-&lt;br /&gt;
| Article Layout&lt;br /&gt;
| componentheading, contentpaneopen, contentheading, contentpagetitle&lt;br /&gt;
|-&lt;br /&gt;
| Category Blog, Frontpage Blog, Section Blog&lt;br /&gt;
| componentheading, contentpagetitle, blog, contentpaneopen, contentheading, readon, blog_more&lt;br /&gt;
|-&lt;br /&gt;
| Category List, Section List&lt;br /&gt;
| componentheading, contentpane, contentdescription&lt;br /&gt;
|-&lt;br /&gt;
| Contact Category&lt;br /&gt;
| componentheading, contentpane, contentdescription, sectiontablefooter, sectiontableheader, category&lt;br /&gt;
|-&lt;br /&gt;
| Contact Layout&lt;br /&gt;
| componentheading, contentpaneopen, contentheading&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
So, to sum up what we have learned about using the Page Class Suffix parameter:&lt;br /&gt;
# Use a leading space to create a new CSS class. This way you don&#039;t have to worry about re-doing or breaking existing CSS styles.&lt;br /&gt;
# Look in the HTML source code to find the locations of the base and new classes. &lt;br /&gt;
# If desired, use Firebug to see which HTML elements correspond to which areas on the page.&lt;br /&gt;
# Add custom styling to the end of the &amp;quot;template.css&amp;quot; file, specifying both the name of the desired base class and the custom class in the form &amp;lt;code&amp;gt;.baseclass.customclass&amp;lt;/code&amp;gt; as in the example above.&lt;br /&gt;
&lt;br /&gt;
==Module Class Suffix==&lt;br /&gt;
The Module Class Suffix parameter works in the same way as the Page Class Suffix. Let&#039;s go through an example using the Latest News module.&lt;br /&gt;
&lt;br /&gt;
In the administrative back end, navigate to Extensions &amp;amp;rarr; Module Manager and find the &amp;quot;Latest News&amp;quot; module. Click on it to open it for editing, and enter &amp;lt;space&amp;gt; + &amp;quot;customLatestClass&amp;quot; in the Module Class Suffix parameter field, as shown below:&lt;br /&gt;
&lt;br /&gt;
[[Image:Module_class_suffix_space.png]]&lt;br /&gt;
&lt;br /&gt;
Now, navigate to the home page in the front end and view the page source code. The screenshot below was made using the Firebug add-in tool. It shows the home page and the HTML and styling for the customised Latest News module.&lt;br /&gt;
&lt;br /&gt;
[[Image:Latest_news_custom_class.png]]&lt;br /&gt;
&lt;br /&gt;
In the upper part of the screen, outlined in light blue, is the &amp;quot;div&amp;quot; element for the module. Below, in the HTML window, we see the HTML as follows: &amp;lt;pre&amp;gt;&amp;lt;div class=&amp;quot;moduletable customLatestClass&amp;quot;&amp;gt;&amp;lt;/pre&amp;gt; and then &amp;lt;pre&amp;gt;&amp;lt;ul class=&amp;quot;latestnews customLatestClass&amp;quot;&amp;gt;&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The &amp;quot;moduletable&amp;quot; and &amp;quot;latestnews&amp;quot; classes are created automatically. The new class, &amp;quot;customLatestNews&amp;quot; was created because we started the Module Class Suffix parameter with a leading space.&lt;br /&gt;
&lt;br /&gt;
Now, let&#039;s use our new class to add some custom styling. Again, go to the end of the templates/rhuk_milkyway/css/template.css file and add the following code:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
div.customLatestClass {&lt;br /&gt;
	background-color: #FFFFD2;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
div.customLatestClass h3, ul.customLatestClass, ul.customLatestClass a {&lt;br /&gt;
	color: #8B4513;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file and re-display the home page. It should look like the screenshot below:&lt;br /&gt;
&lt;br /&gt;
[[Image:Latest_news_styled.png]]&lt;br /&gt;
&lt;br /&gt;
The CSS selector &amp;lt;code&amp;gt;div.customLatestClass&amp;lt;/code&amp;gt; sets the background color for the entire area. The three selectors &amp;lt;code&amp;gt;div.customLatestClass h3, ul.customLatestClass, ul.customLatestClass a&amp;lt;/code&amp;gt; select the font color for the &amp;quot;h3&amp;quot; heading, the bullets (&amp;quot;ul&amp;quot; tag), and the &amp;quot;a&amp;quot; tag, respectively. Note that, if we only wanted to style the &amp;quot;ul&amp;quot; element, we wouldn&#039;t need a Module Class Suffix unless we had more than one &amp;quot;Latest News&amp;quot; module. Instead, we could just have defined the CSS using the standard &amp;quot;latestnews&amp;quot; class.&lt;br /&gt;
&lt;br /&gt;
===Be careful not to break existing CSS styling===&lt;br /&gt;
&lt;br /&gt;
In menus, we need to be careful not to break existing CSS styling.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s look at how this works. In the administrative back end, navigate to Extensions &amp;amp;rarr; Module Manager and open the Main Menu for editing. Click on the Advanced Parameters. Notice that the Module Class Suffix is set to &amp;quot;_menu&amp;quot;, without a leading space.&lt;br /&gt;
&lt;br /&gt;
Now, go to the Home page in the front end and view the source code (or use Firebug). The screenshot below shows the HTML for the Main Menu. &lt;br /&gt;
&lt;br /&gt;
[[Image:Main_menu_div.png]]&lt;br /&gt;
&lt;br /&gt;
Notice that the class is called &amp;quot;module_menu&amp;quot; because of the Module Class Suffix. Also, notice that there is special styling in the &amp;quot;template.css&amp;quot; and &amp;quot;blue.css&amp;quot; files for the &amp;quot;module_menu&amp;quot; class. For example, there is a background image that provides part of the blue border around the menu. &lt;br /&gt;
&lt;br /&gt;
We can confirm this by returning to the back end and changing the Module Class Suffix to blank. Return to the Home page and refresh. Now the Main Menu will show without the special &amp;quot;module_menu&amp;quot; styling, as shown below:&lt;br /&gt;
&lt;br /&gt;
[[Image:Main_menu_no_suffix.png]]&lt;br /&gt;
&lt;br /&gt;
This shows an important point. Existing modules, especially menus, may already have CSS styling that depends on Module Class Suffixes. So we need to be careful when making changes.&lt;br /&gt;
&lt;br /&gt;
What if we still wanted to add some special styling just to the Main Menu? One way is to get tricky and add a second CSS class to the existing suffix. To see this, return to the Module Manager in the back end and open the Main Menu for editing. This time, in the Module Class suffix, enter &amp;lt;code&amp;gt;_menu&amp;lt;/code&amp;gt;, a space, and then &amp;lt;code&amp;gt;myMenuClass&amp;lt;/code&amp;gt;, as shown below:&lt;br /&gt;
&lt;br /&gt;
[[Image:Module_class_suffix_tricky.png]]&lt;br /&gt;
&lt;br /&gt;
Now, add the following code to the end of the templates/rhuk_milkyway/css/template.css file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
div.myNewClass {&lt;br /&gt;
	font-size: 1.2em;&lt;br /&gt;
	}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go back to the Home page and notice that now the font in the Main Menu is larger, as shown below.&lt;br /&gt;
&lt;br /&gt;
[[Image:Main_menu_custom_style.png]]&lt;br /&gt;
&lt;br /&gt;
If we open Firebug, we can see what the HTML and CSS looks like, as shown below:&lt;br /&gt;
&lt;br /&gt;
[[Image:Firebug_custom_menu_class.png]]&lt;br /&gt;
&lt;br /&gt;
By putting a space between the &amp;quot;_menu&amp;quot; and &amp;quot;myNewClass&amp;quot;, we added the new class into the HTML. Then, by selecting the new class in the CSS file, we changed the font size.&lt;br /&gt;
&lt;br /&gt;
==Menu Class Suffix and Menu Tag ID==&lt;br /&gt;
All core modules allow you to enter a Module Class Suffix, as discussed above. Menu modules have two additional parameters: Menu Class Suffix and Menu Tag ID. Let&#039;s look at what these parameters do.&lt;br /&gt;
&lt;br /&gt;
===Menu Class Suffix===&lt;br /&gt;
&lt;br /&gt;
The Menu Class Suffix inserts an extra suffix in the class for the unordered list that builds up the menu. If unedited, the class is &amp;quot;menu&amp;quot;. If adding &amp;quot;_myMenuClass&amp;quot; under Advanced Parameters &amp;amp;rarr; Menu Class Suffix, the new tag will be &amp;quot;menu_myMenuClass&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
(This behaviour is only for the Menu Style &amp;quot;List&amp;quot;. If chossing &amp;quot;Legacy - Vertical&amp;quot; or &amp;quot;Legacy - Horizontal&amp;quot;, the class suffix will be added to the links in the table; this suffix will then be &amp;quot;mainlevel_myMenuClass&amp;quot;. When choosing the Legacy Flat List, the suffix will be added the links (as on the two other Legacy lists), but it will also be added to the ul tag, but as an id rather than a class; the id will be &amp;quot;mainlevel_myMenuClass&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
===Menu Tag ID parameter===&lt;br /&gt;
&lt;br /&gt;
Now, lets look at the Menu Tag ID parameter. Navigate to the back end, open the Main Menu module for editing, and enter &amp;quot;myTagID&amp;quot; in the Menu Tag ID parameter.&lt;br /&gt;
&lt;br /&gt;
Add the following code to the end of the templates/rhuk_milkyway/css/template.css file:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
#myTagID {&lt;br /&gt;
	list-style-type: square;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, re-display the Home page to see the change. The bullets for the Main Menu should now appear as squares, as shown below:&lt;br /&gt;
&lt;br /&gt;
[[Image:Main_menu_square_bullets.png]]&lt;br /&gt;
&lt;br /&gt;
Finally, we can look at the HTML and CSS in Firebug, as shown below. &lt;br /&gt;
&lt;br /&gt;
[[Image:Menu_tag_id_code.png]]&lt;br /&gt;
&lt;br /&gt;
Joomla! has added the attribute &amp;lt;code&amp;gt;id=&amp;quot;myTagID&amp;quot;&amp;lt;/code&amp;gt; to the &amp;quot;ul&amp;quot; tag for the Main Menu. This allowed us to change the style for this ID. Note that, since this is an &amp;quot;id&amp;quot; attribute, we use the CSS selector &amp;lt;code&amp;gt;#myTagID&amp;lt;/code&amp;gt; (with a &amp;quot;#&amp;quot; instead of a &amp;quot;.&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
==Conclusion==&lt;br /&gt;
The Class Suffix and Menu Tag ID parameters allow you to fine-tune the CSS styling of your web site. By using a leading space in the suffix name, we can create a new class. This is normally the preferred method, since, as long as the new class name does not conflict with an existing class, no existing styling will be broken.&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Talk:Using_Class_Suffixes&amp;diff=14022</id>
		<title>Talk:Using Class Suffixes</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Talk:Using_Class_Suffixes&amp;diff=14022"/>
		<updated>2009-04-27T12:39:22Z</updated>

		<summary type="html">&lt;p&gt;Felham: New page: Great tutorial, but there is nothing about Menu Class Suffixes in the text, it only says in the headlines etc. that Menu Class Suffixes is going to be written about, but there is nothing -...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Great tutorial, but there is nothing about Menu Class Suffixes in the text, it only says in the headlines etc. that Menu Class Suffixes is going to be written about, but there is nothing - only Module Class Suffix again.&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Where_to_find_design_tools&amp;diff=13744</id>
		<title>Where to find design tools</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Where_to_find_design_tools&amp;diff=13744"/>
		<updated>2009-03-25T15:33:57Z</updated>

		<summary type="html">&lt;p&gt;Felham: Updated link.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.alvit.de/handbook/ Web Developer&#039;s Handbook], a massive directory of design resources for web developers.&amp;lt;br /&amp;gt;&lt;br /&gt;
[http://colorschemedesigner.com/ Colour scheme generator]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Itemised lists]][[Category:Templates]]&lt;br /&gt;
[[Category:Template FAQ]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=What_is_the_typical_template_directory_structure%3F&amp;diff=13743</id>
		<title>What is the typical template directory structure?</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=What_is_the_typical_template_directory_structure%3F&amp;diff=13743"/>
		<updated>2009-03-25T15:29:08Z</updated>

		<summary type="html">&lt;p&gt;Felham: Added info about the file component.php&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Typical Template Directory Structure===&lt;br /&gt;
It is most common for a template to have at the following files:&lt;br /&gt;
* index.php&lt;br /&gt;
: Provides the logic for the display and positioning of modules and components.&lt;br /&gt;
* component.php&lt;br /&gt;
: Provides the logic for the display of the printer friendly page, &amp;quot;E-mail this link to a friend.&amp;quot; etc.&lt;br /&gt;
* template.css&lt;br /&gt;
: Handles the presentational aspects of the template including specifications for margins, fonts, headings, image borders, list formatting, etc.&lt;br /&gt;
* templateDetails.xml&lt;br /&gt;
: Holds meta-information related to the template and used by the Installer and the Template Manager.&lt;br /&gt;
* template_thumbnail.ext - replace .ext with the extension format of the image (.jpg, .png, .gif)&lt;br /&gt;
: Generally a 200x150 pixel image that is shown when the cursor is held over the template name in the Template Manager.  This gives the Administrator a snapshot view of the template before applying it to the Site.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{:Typical template directory structure}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Templates]][[Category:Definition lists]][[Category:Beginners]]&lt;br /&gt;
[[Category:Template FAQ]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Felham</name></author>
	</entry>
</feed>