Predefined tags
Predefined tags
We list the predefined tag you can use in your templates.
Variables
- {$synPageTitle}: it returns the page name. Useful when used in the title tag in the head of the page. I.e.:
<head>{$synPageTitle}</head> - {$synPageId}: it returns the page id
- {$synPath}: it returns the installation path of Syntax Desktop. Usually this variable contains ”syntax desktop”, but the installation path can be changed. This tag is very usefull when you use images or scripts. Images, in fact, have to be saved in the /syntax desktop/public/img/ directory, so you don’t waste the site root. I.e.:
<img src=”{$synPath}/public/img/esempio.jpg” alt=”example image” /> - {$synAbsPath}: it returns the absolute installation path of Syntax Desktop.
Plugins
- {page}: it returns the page contents. You must put this predefined plugin where you want the page text to be displayed. I.e.:
<html>
<body>
<div>{page}</div>
</body>
</html>
In this example, we’ve created a simple template where the page text is displayed inside a div tag.