Xataface uses the Smarty Template Engine to power all of its templates. Templates are stored in the one of the following locations:
%XATAFACE_ROOT%/Dataface/templates
%SITE_ROOT%/templates
Where %XATAFACE_ROOT% is the Xataface directory (includes files such as dataface-public-api.php), and %SITE_ROOT% is the path to your application.
You may also have subdirectories within these templates directories.
Cascading Templates
Xataface uses a simple cascading technique for deciding which template to use. If there are templates in the %SITE_ROOT%/templates and %XATAFACE_ROOT%/Dataface/templates directories with the same name, then Xataface will use the one in the %SITE_ROOT%/templates directory. In this way, you are able to override any of Xataface's core templates by adding one of the same name to your %SITE_ROOT%/templates directory.
The most common template to override is the Dataface_Main_Template.html template which defines the look and feel for the entire application (e.g. header, footer, etc...). Hence, if you wanted to customize the look & feel of your application, you would likely start by copying %XATAFACE_ROOT%/Dataface/templates/Dataface_Main_Template.html into the %SITE_ROOT%/templates directory and make modifications to it as desired.
Useful Smarty Tags introduced by Xataface
In addition to the standard set of Smarty tags, Xataface templates provide some of its own.
Xataface Templates
Xataface uses the Smarty Template Engine to power all of its templates. Templates are stored in the one of the following locations:
%XATAFACE_ROOT%/Dataface/templates
%SITE_ROOT%/templates
Where %XATAFACE_ROOT% is the Xataface directory (includes files such as dataface-public-api.php), and %SITE_ROOT% is the path to your application.
You may also have subdirectories within these templates directories.
Cascading Templates
Xataface uses a simple cascading technique for deciding which template to use. If there are templates in the %SITE_ROOT%/templates and %XATAFACE_ROOT%/Dataface/templates directories with the same name, then Xataface will use the one in the %SITE_ROOT%/templates directory. In this way, you are able to override any of Xataface's core templates by adding one of the same name to your %SITE_ROOT%/templates directory.
The most common template to override is the Dataface_Main_Template.html template which defines the look and feel for the entire application (e.g. header, footer, etc...). Hence, if you wanted to customize the look & feel of your application, you would likely start by copying %XATAFACE_ROOT%/Dataface/templates/Dataface_Main_Template.html into the %SITE_ROOT%/templates directory and make modifications to it as desired.
Useful Smarty Tags introduced by Xataface
In addition to the standard set of Smarty tags, Xataface templates provide some of its own.