Actions

Difference between revisions of "Typical template directory structure"

From Joomla! Documentation

m (Reverted edits by Dragmen (Talk); changed back to last version by Radiant tech)
(Marked this version for translation)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A typical template for Joomla! 1.5 will include the following directories:
+
<noinclude><languages /></noinclude>
 +
<translate><!--T:1-->
 +
A typical template for Joomla! will include the following directories:
 
* css - contains all the .css files
 
* css - contains all the .css files
 
* html - contains template override files for core output and module chrome
 
* html - contains template override files for core output and module chrome
 
* images - contains all images used by the template
 
* images - contains all images used by the template
 +
* language - contains additional language files used by the template</translate>
  
<noinclude>[[Category:Itemised lists]][[Category:Reference]][[Category:Templates]]</noinclude>
+
<translate><!--T:2-->
 +
Depending on the complexity and design of the template is may also contain:
 +
* javascript - contains supporting JavaScript used by the template for added functionality</translate>
 +
 
 +
<translate>====Example structure with files==== <!--T:3--></translate>
 +
<translate><!--T:4-->
 +
Typical path of a template is <code><root>/public_html/domain-name/template/<name of your template></code> which will contain the following directories and files based on your template.</translate>
 +
<pre>
 +
/css
 +
/html
 +
/images
 +
/javascript
 +
/language
 +
component.php
 +
error.php
 +
favicon.ico
 +
index.php
 +
templateDetails.xml
 +
template_preview.png
 +
template_thumbnail.png
 +
</pre>
 +
 
 +
<noinclude>
 +
<translate><!--T:5-->
 +
[[Category:Template Reference]]
 +
[[Category:Template Development]]</translate>
 +
</noinclude>

Latest revision as of 18:24, 25 October 2014

Other languages:
English • ‎español • ‎français • ‎Nederlands

A typical template for Joomla! will include the following directories:

  • css - contains all the .css files
  • html - contains template override files for core output and module chrome
  • images - contains all images used by the template
  • language - contains additional language files used by the template

Depending on the complexity and design of the template is may also contain:

  • javascript - contains supporting JavaScript used by the template for added functionality

Example structure with files

Typical path of a template is <root>/public_html/domain-name/template/<name of your template> which will contain the following directories and files based on your template.

/css
/html
/images
/javascript
/language
component.php
error.php
favicon.ico
index.php
templateDetails.xml
template_preview.png
template_thumbnail.png