RE: [htmltmpl] how to determine if tmpl_var exists in a loop?
Brought to you by:
samtregar
From: Kapoor, N. <nis...@xc...> - 2004-04-16 20:31:19
|
Sorry, I should have checked the docs first. Anyway, thanks for the = help.=20 This is exactly what I was looking for if ($template->query(name =3D> ['tmplLoop', 'tmplVar'])) {} Thanks Nishi > -----Original Message----- > From: Roger Burton West [mailto:ro...@fi...] > Sent: Friday, April 16, 2004 9:02 AM > To: H::T (E-mail) > Subject: Re: [htmltmpl] how to determine if tmpl_var exists in a loop? >=20 >=20 > On Fri, Apr 16, 2004 at 08:39:05AM -0500, Kapoor, Nishikant wrote: > >I have used=20 > >if ($template->query(name =3D> 'tmplVar')) {} > >to check if a tmpl_var exists in the template or not. > >How/what do I use for a tmpl_var inside a tmpl_loop? >=20 > Recurse or append parameters. See the documentation, under: >=20 > "query()" also allows you to get a list of parameters > inside a loop (and inside loops inside loops). >=20 > which explains it very clearly. >=20 > Roger >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > = administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users >=20 >=20 |