creloaded template system explained


Creloaded Logo

Directory Structure

Figure 1.0 Creloaded default directory structure
Figure 1.0 Creloaded default directory structure

In the CRE loaded shopping cart software, its template system was designed to separate the design from the rest of the source code. We will discuss the important template related files and directories to explain their function within the template system. This article is not meant to explain every file and directory on your site but just give you enough information so that you will be able to locate the most commonly updated files/directories .

templates directory

this directory is where all template and design related files are located within the cart . The consists of two parts (1) the content directory and (2) actual template directories .

tempates/content directory

the content directory is where you will find all the default code to display the main content of a particular page . The files in the content directory have the following naming convention :  <name of the page>.tpl.php . There is a direct relationship between the name of a file in this directory and the name of a page on your site. If you want to find the code for the content of a particular page on your site, take the name of the page you are looking at ( minus the php extension ) and locate a file with a matching name the templates/content directory . This will the be file that contains the main content of the page. For example, to find the code for the specials.php file on your site, go to the templates/content directory and locate the specials.tpl.php . This will be the source code for that file.

All other directories within the templates directory are the actual template directories where you will find the design, layout and images displayed on your site . The default template directory that comes with the site is named cre_ats. cre_ats is the design that you saw on your site the first time you were able to visit it.

Template files and directory structure

this folder contains the core file that runs the application. Basically classes, cart functions, constant variables, languages and etc. Below are the folders placed inside includes folder:

az_template directory structure and files

this folder contains the core file that runs the application. Basically classes, cart functions, constant variables, languages and etc. Below are the folders placed inside includes folder:

 


You can view this article online at:
http://docs.algozone.com/article/creloaded-template-system-explained