Difference between revisions of "Setting up a directory structure"

From Joomla! Documentation

m (Wrong file name in example)
m (clean up some grammar.)
Line 1: Line 1:
 
To make the most basic template, '''create a new folder''' in the ''"templates"'' folder. Name this folder after your template i.e. "mynewtemplate".
 
To make the most basic template, '''create a new folder''' in the ''"templates"'' folder. Name this folder after your template i.e. "mynewtemplate".
  
Using a text editor (or dedicated editor such as [[Adobe Dreamweaver]]) '''create the files "index.php", "templateDetails.xml"'''
+
Using a text editor (or dedicated editor such as [[Adobe Dreamweaver]]) '''create the files "index.php" and "templateDetails.xml"'''
  
To keep things organised, make '''2 new folders called "images" and "css"'''. Insided the "css" folder create a file called "style.css"
+
To keep things organized, make '''2 new folders called "images" and "css"'''. Inside the "css" folder create a file called "style.css".
  
This is the most basic practical setup. Theoretically, the css could be missed out but if you place the styling information within your "index.php" it will bloat the size of webpages and give a poor user experience.
+
Although it is fine to place all your CSS code directly in your "index.php" 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 "link" tag.
 +
 
 +
This is the most basic practical setup.
  
 
Outline of folder and file structure:
 
Outline of folder and file structure:

Revision as of 15:42, 17 November 2008

To make the most basic template, create a new folder in the "templates" folder. Name this folder after your template i.e. "mynewtemplate".

Using a text editor (or dedicated editor such as Adobe Dreamweaver) create the files "index.php" and "templateDetails.xml"

To keep things organized, make 2 new folders called "images" and "css". Inside the "css" folder create a file called "style.css".

Although it is fine to place all your CSS code directly in your "index.php" 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 "link" tag.

This is the most basic practical setup.

Outline of folder and file structure:

  • mynewtemplate/
    • css/
      • style.css
    • images/
    • index.php
    • templateDetails.xml