Actions

Difference between revisions of "Typical template directory structure"

From Joomla! Documentation

m (heading size)
 
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
* javascript - contains supporting JavaScript used by the template for added functionality
 
* javascript - contains supporting JavaScript used by the template for added functionality
  
===Example with files===
+
====Example structure with files====
 
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.
 
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.
 
<pre>
 
<pre>
Line 25: Line 25:
 
</pre>
 
</pre>
  
<noinclude> [[Category:Reference]]
+
<noinclude>
 +
[[Category:Template Reference]]
 
[[Category:Template Development]]
 
[[Category:Template Development]]
 
  </noinclude>
 
  </noinclude>

Latest revision as of 22:38, 22 June 2013

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