Gossamer Forum
Home : Products : DBMan SQL : Discussion :

testing template tags within qsearch_result.html

Quote Reply
testing template tags within qsearch_result.html
Hi,

The weirdest thing: I cannot get the template if statement to work on a query listing.

Example template source:
Code:
<%loop results%>
<%forms.status%><%if forms.status%>!!!<%endif%><BR />
<%endloop%>

The result:
Code:
S<BR />
C<BR />
F<BR />

<%if first%> does work, so it seems to be related to testing for query column elements.... Any idea what I am doing wrong?

Jasper

http://www.bookings.org
Quote Reply
Re: [jaspercram] testing template tags within qsearch_result.html In reply to
Hi Jasper,

In this case, you should use:

<%loop results%>
<%set status = $forms.status%>
<%status%><%if status%>!!!<%endif%><BR />
<%endloop%>

TheStone.

B.
Quote Reply
Re: [TheStone] testing template tags within qsearch_result.html In reply to
It worked! Thanks!

http://www.bookings.org