Navigation

Views

Search
 

Toolbox

What are templates

From Documentation

Revision as of 16:30, 21 November 2006; view current revision
←Older revision | Newer revision→

In 68 Classifieds, templates are special files that format the layout of your site.

These files are responsible for the entire layout and gives you the ability to make changes quickly and easily. To help better understand how templates work look at this example...

  1. Joe internet surfer points his browser to your domain which triggers the web server to parse index.php.
  2. index.php is parsed and the code within is executed which may include the script performing database lookups, math functions calling for templates to be displayed etc.
  3. The result of the parsed code is sent to the browser for Joe surfer to view and interact with.

The visual layout of 68 Classifieds is broken into 2 basic elements. The layout and the body or content. The layout consists of the header image, the navigation menu and the footer. The body consists of various other things depending on which navigation link your visitor clicks on.

The layout is handled by the file layout.tpl.php and style.css where as the various other templates are used in the body or content section.