Well....<div><br></div><div>That worked :).</div><div><br></div><div>Thanks for everyone for your help and coordination.</div><div><br></div><div>Regards.<br><br><div class="gmail_quote">On Mon, Aug 9, 2010 at 3:59 AM, Bernardo Gonzalez Kriegel <span dir="ltr"><<a href="mailto:bgkriegel@gmail.com">bgkriegel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
as explained on<br>
<a href="http://search.cpan.org/~samtregar/HTML-Template-2.9/Template.pm#TMPL_IF" target="_blank">http://search.cpan.org/~samtregar/HTML-Template-2.9/Template.pm#TMPL_IF</a><br>
you need to pass a variable whose value is true or false to PERL, for example<br>
<br>
<!-- TMPL_IF NAME="fulltext"--><br>
Show if true<br>
<!-- TMPL_ELSE --><br>
Otherwise<br>
<!-- /TMPL_IF --><br>
<br>
would work if "fulltext" has values "1" (true) or "0" (false). From<br>
the point of view of PERL, "TRUE" and "FALSE" are true.<br>
<br>
You will need to set apropriate values, following the example<br>
$template->param( fulltext => '1'); # for true<br>
$template->param( fulltext => '0'); # for false<br>
<br>
Hope that helps.<br>
<br>
Bernardo<br>
<br>
2010/8/8 Nitesh Rijal <<a href="http://rijal.it" target="_blank">rijal.it</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hello all.<br>
><br>
> I am trying to display a link only if one variable has TRUE. For this I have<br>
> the following:<br>
><br>
> <!-- TMPL_VAR NAME="fulltext" --> gives me either TRUE or FALSE<br>
><br>
> what should the <!-- TMPL_IF --> look like, so that if it is TRUE then IF<br>
> block is displayed otherwise ELSE block is displayed.<br>
><br>
> Please Help.<br>
><br>
> Regards.<br>
><br>
> Nitesh Rijal<br>
> BE IT<br>
> <a href="http://rijal.it" target="_blank">rijal.it</a>@<a href="http://gmail.com" target="_blank">gmail.com</a><br>
> <a href="http://niteshrijal.com.np" target="_blank">http://niteshrijal.com.np</a><br>
> <a href="http://facebook.com/openrijal" target="_blank">http://facebook.com/openrijal</a><br>
> <a href="http://twitter.com/openrijal" target="_blank">http://twitter.com/openrijal</a><br>
> +9779841458173<br>
><br>
</div></div>> _______________________________________________<br>
> Koha mailing list<br>
> <a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
> <a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br>Nitesh Rijal<br>BE IT<br><a href="http://rijal.it">rijal.it</a>@<a href="http://gmail.com">gmail.com</a><br><a href="http://niteshrijal.com.np">http://niteshrijal.com.np</a><br>
<a href="http://facebook.com/openrijal">http://facebook.com/openrijal</a><br><a href="http://twitter.com/openrijal">http://twitter.com/openrijal</a><br>+9779841458173<br>
</div>