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.
Quote Reply
Re: [Alba] wml search In reply to
Perhaps because there's no links_loop variable in the default templates?

Adrian
Quote Reply
Re: [brewt] wml search In reply to
That was the answer- don't know why I'd put it in there.

Thanks.