Creating a custom template

Top  Previous  Next

InvenTrack makes use of a templating system called Smarty. Below we will touch base on the files you can edit to make your site have a custom look. If you would like more information on Smarty please visit the official Smarty Website.

 

The template files for your site are located in the templates/default folder.

 

folder_important

We recommend you create a new folder in the templates folder such as 'custom' and copy the contents of the default folder to it and make your customizations there. This will keep any future updates from overwriting any customizations you have made.

 

Main template files:

comparevehicles.tpl - Vehicle comparison page.
contactus.tpl - Contact us layout page.
creditapplication.tpl - Credit Application
directions.tpl - Directions
footer.tpl - Site footer, shows on all pages
header.tpl - Site header, shows on all pages
listnewcars.tpl - New car listings page
listusedcars.tpl - Used car listings page
navigation.tpl - Site navigation
orderparts.tpl - Order parts page
ourstaff.tpl - Staff page
paymentcalculator.tpl - Payment calculator popup
printvehicle.tpl - Print vehicle details popup
quickquote.tpl - Quick quote page
searchresults.tpl - Search results page
serviceappointment.tpl - Service appointment page
specials.tpl - Specials page
tellafriend.tpl - Tell a friend popup
vehicledetails.tpl - Vehicle details page

 

The pages above hold the HTML for your site. You can edit any of them to customize your site. You can also interact with the PHP parts of the site using the Smarty templating system. To do so please visit the Smarty Website for more information.

 

folder_important

We recommend using a program such as phpDesigner to edit the pages. DO NOT use a program such as front page to edit the pages as it will corrupt the files and cause them to not work properly.

 

Links to recommended editors:

 

phpDesigner (Highly Recommended)

This is one of the best editors on the market. You can get a personal license for about $50US.

 

Free PHP Editors:

Maguna Open Studio (Free Open Source)

A PHP IDE that includes features for class browsing, ftp support, snippets, debugging and project management.

 

Dev-PHP IDE (Free Open source)

Dev-PHP is a well-featured IDE for PHP. Fast and powerful, it is easy to use and has a lot of cool features : class browser, scripts preview, integration with PHP parsers, PHP-GTK library, and Xdebug of course. Dev-PHP-usb slips even into your pocket.