Template creation

The first step you've to do is the creation of your own template.

A template is a simple HTML file that it contains all the references to the images and script. Inside a template you can also insert some special tags, smarty tags. These tags are charaterized by curly brakes. Here an example of this kind of tags:

26-01-2012 - Gioca e Vinci con i Supereroi del Risparmio Energetico

Gioca e Vinci con i Supereroi del Risparmio Energetico

Gioca e Vinci con i Supereroi del Risparmio Energetico
Gioca e Vinci con i Supereroi del Risparmio Energetico


or

We distinguish 2 tag types. The tag that it recalls functions and the tag that recalls variables. The distinction between the two types is denoted from the sign dollar ($) prefixed to the name.
In the first case (

26-01-2012 - Gioca e Vinci con i Supereroi del Risparmio Energetico

Gioca e Vinci con i Supereroi del Risparmio Energetico

Gioca e Vinci con i Supereroi del Risparmio Energetico
Gioca e Vinci con i Supereroi del Risparmio Energetico

) we reference a plugin, that launch function.news.php, a php function situated in the /syntax desktop/public/plugins/ directory.
The other row ( ) reference a variable called $title.

At the ending, you the template have to be saved in the /syntax desktop/public/template/ folder with .tpl extension. As an example, a correct name for a template could be homepage.tpl or genericpage.tpl.

We have to define a new template inside Syntax Desktop database. Open contents->section->template and click "new document" in the right toolbar. In order to define template it is necessary to specify the name and the related template file. You have to choose it from the drop-down menu. As an example, in order to define the homepage template, we  write "homepage" in the name field and choose the rows homepage.tpl in the dropdown menu.

 

HELP ME!
If you want to help me, send the right english translation of this page at
info@dynamick.it .
Thank you!