I didn't like seeing the following kinds of results on my search results pages:
Your search returned 0 categories and 1 links
I wanted to see results like this:
Your search returned 1 category and 12 links
Your search returned 1 link
Your search returned 8 categories and 1 link
Your search returned 17 links
etc.
So, I used the following code in my search_results.html file. You must install Alex's Enhanced Template Support mod in the Template.pm file before using this code.
Your search returned
<%if cat_hits eq 1%>
<strong> <%cat_hits%> </strong>Category
<%endif%>
<%if cat_hits gt 1%>
<strong> <%cat_hits%> </strong>Categories
<%endif%>
<%if cat_hits gt 0%>
<%if link_results%>
and
<%endif%>
<%endif%>
<%if link_hits eq 1%>
<strong><%link_hits%> </strong>Link
<%endif%>
<%if link_hits gt 1%>
<strong><%link_hits%> </strong>Links
<%endif%>
Your search returned 0 categories and 1 links
I wanted to see results like this:
Your search returned 1 category and 12 links
Your search returned 1 link
Your search returned 8 categories and 1 link
Your search returned 17 links
etc.
So, I used the following code in my search_results.html file. You must install Alex's Enhanced Template Support mod in the Template.pm file before using this code.
Your search returned
<%if cat_hits eq 1%>
<strong> <%cat_hits%> </strong>Category
<%endif%>
<%if cat_hits gt 1%>
<strong> <%cat_hits%> </strong>Categories
<%endif%>
<%if cat_hits gt 0%>
<%if link_results%>
and
<%endif%>
<%endif%>
<%if link_hits eq 1%>
<strong><%link_hits%> </strong>Link
<%endif%>
<%if link_hits gt 1%>
<strong><%link_hits%> </strong>Links
<%endif%>