|
From: | paul POULAIN |
Subject: | Re: [Koha-devel] TMPL_IF question |
Date: | Wed Apr 23 07:21:56 2003 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.1) Gecko/20020826 |
Tonnesen Steve wrote:
HTML::Template doesn't give any facility for comparisons (greater than, less than, etc). TMPL_IF blocks will be evaulated if the variable is defined and non-zero. TMPL_IF blocks will not be evaluated if thevariable id undefined or zero.
Steve is right. It means you can write : <TMPL_IF name="numrecord"> ... lots of records </TMPL_IF>It's used in some places to make "static" parts appear or disappear in the final page.
Steve. On Tue, 22 Apr 2003, Owen Leonard wrote:If there's a variable <TMPL_VAR NAME="numrecords">, can you say something like:<TMPL_IF "numrecords" greater than 0> ... lots of records </TMPL_IF>?
-- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
[Prev in Thread] | Current Thread | [Next in Thread] |