2.1

PrintShop Web Skinning Guide | 38
Special variables
In this section we list the special variables you can use in the Template.php and Style.php files.
Variables for Template.php
The functions in this section can be used in the Template.php file.
generateString
The generateString function retrieves a language string based on the supplied parameter. It is used to
insert language dependent text.
<? generateString(cSystemName); ?>
/* Renders to following text */
PrintShop Web
Custom strings can be added to the language strings. A string is made up of a name and a value,
which are seperated by the = symbol.
cSystemName=PrintShop Web
cAdditionalInfo=PSW
cFooter=PrintShop Web 2.0, www.objectiflune.com
setRowsPerPage
The setRowsPerPage function can be used to change the number of rows shown in overview tables.
The function can added to the Template.php file and should be insert before the generateContent
function. By default overview tables show 15 rows per page.
<? setRowsPerPage(25); ?>
<div id="content">
<? if (getFormCount() > 0){ ?>
<? generateContent(); ?>
<? } ?>
</div>
Variables for Style.php
The Style.php is not a regular CSS file. Its a PHP file that renders a CSS file. By including
theskin_customization.php line at the beginning of your Style.php file the values entered in the Edit
Web Design pages can be used in your style. Once included special PHP functions can be used to
retrieve style information that is entered in the Edit Web Design page of the companies in PSW.