Gossamer Forum
Quote Reply
wml search
Setting up a wap search. Using the following:

search.html template
Quote:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id="searchcard" title="Search">
<p>
<do type="accept" name="go" label="Submit">
<go href="http://www.mysite.com/cgi-bin/search.cgi?mh=5">
<postfield name="query" value="$query" />
</go>
</do>
<fieldset>
<input type="text" name="query" size="15" value="" emptyok="true"/>
</fieldset>
</p>
</card>
</wml>

and search_results.html template:
Quote:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id="index" title="Results">
<p>
<%loop link_results_loop~%>
<%loop links_loop~%>
<%include link.html%>
<%endloop%>
<%~endloop%>

<%if paging.num_hits%><%Links::Utils::paging%><%endif%>
</p>
</card>
</wml>

Am getting paging but no links results. Anyone see what I've done wrong? (the rest of the templates are working OK)

Thanks.
Subject Author Views Date
Thread wml search Alba 2181 May 1, 2006, 9:50 AM
Thread Re: [Alba] wml search
brewt 2083 May 1, 2006, 11:40 AM
Post Re: [brewt] wml search
Alba 2060 May 2, 2006, 1:20 AM