What is the typical template directory structure?
From Joomla! Documentation
(Difference between revisions)
Dextercowley (Talk | contribs) m (Reverted edits by Dragmen (Talk); changed back to last version by Dextercowley) |
Mk2-design (Talk | contribs) m (formatting) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
===Typical Template Directory Structure=== | ===Typical Template Directory Structure=== | ||
| − | It is most common for a template to have at least | + | It is most common for a template to have at least the following files: |
| − | * index.php | + | * '''index.php''' |
: Provides the logic for the display and positioning of modules and components. | : Provides the logic for the display and positioning of modules and components. | ||
| − | * template.css | + | * '''component.php''' |
| + | : Provides the logic for the display of the printer friendly page, "E-mail this link to a friend." etc. | ||
| + | * '''template.css''' | ||
: Handles the presentational aspects of the template including specifications for margins, fonts, headings, image borders, list formatting, etc. | : Handles the presentational aspects of the template including specifications for margins, fonts, headings, image borders, list formatting, etc. | ||
| − | * templateDetails.xml | + | * '''templateDetails.xml''' |
| − | : Holds meta-information related to the template and used by the Installer and the Template Manager. | + | : Holds meta-information related to the template and is used by the Installer and the Template Manager. |
| − | * template_thumbnail.ext - replace .ext with the extension format of the image (.jpg, .png, .gif) | + | * '''template_thumbnail.ext''' - replace .ext with the extension format of the image (.jpg, .png, .gif) |
: 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. | : 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. | ||
Latest revision as of 00:36, 4 September 2009
[edit] Typical Template Directory Structure
It is most common for a template to have at least the following files:
- index.php
- Provides the logic for the display and positioning of modules and components.
- component.php
- Provides the logic for the display of the printer friendly page, "E-mail this link to a friend." etc.
- template.css
- Handles the presentational aspects of the template including specifications for margins, fonts, headings, image borders, list formatting, etc.
- templateDetails.xml
- Holds meta-information related to the template and is used by the Installer and the Template Manager.
- template_thumbnail.ext - replace .ext with the extension format of the image (.jpg, .png, .gif)
- 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.
A typical template for Joomla! 1.5 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