7.0
Table Of Contents
5.1 Variables for template files
The functions in this section can be used in templates files (e.g. Template.php).
5.1.1 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 Mail Web
cAdditionalInfo=PSM Web
cFooter=PrintShop Mail Web, www.objectiflune.com
5.1.2 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>
Objectif Lune Inc. © 2010 37