Typical template directory structure: Difference between revisions
From Joomla! Documentation
m removed Category:Itemised lists using HotCat |
Some markup changes. |
||
| (5 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
A typical template for Joomla! will include | <noinclude><languages /></noinclude> | ||
* css - contains all the .css files | <translate><!--T:1--> | ||
* html - contains template override files for core output and module chrome | A typical template for Joomla! will include these directories: | ||
* images - contains all images used by the template | * ''css'' - contains all the ''.css'' files | ||
* language - contains additional language files used by the template | * ''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</translate> | |||
Depending on the complexity and design of the template | <translate><!--T:2--> | ||
* javascript - contains supporting JavaScript used by the template for added functionality | Depending on the complexity and design of the template, it may also contain: | ||
* ''javascript'' - contains supporting JavaScript used by the template for added functionality</translate> | |||
===Example with | <translate>====Example Structure with Files==== <!--T:3--></translate> | ||
Typical path of a template is | <translate><!--T:4--> | ||
< | 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.</translate> | ||
<syntaxhighlight lang="html"> | |||
/css | /css | ||
/html | /html | ||
| Line 22: | Line 26: | ||
templateDetails.xml | templateDetails.xml | ||
template_preview.png | template_preview.png | ||
template_thumbnail.png | template_thumbnail.png | ||
</ | </syntaxhighlight> | ||
<noinclude> [[Category:Reference]] | <noinclude> | ||
[[Category:Template Development]] | <translate><!--T:5--> | ||
[[Category:Template Reference]] | |||
[[Category:Template Development]]</translate> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 15:03, 5 November 2022
A typical template for Joomla! will include these 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, it 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