From 770c870d22459225b84ade9c7152b801c15c8c46 Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Sat, 16 Feb 2008 23:22:24 +0000 Subject: Add an option to and search words together instead of or-ing them all. --- templates/search.tpl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/search.tpl b/templates/search.tpl index 0e4e1f3..4e3606d 100644 --- a/templates/search.tpl +++ b/templates/search.tpl @@ -17,7 +17,16 @@
{formlabel label="Use Partial Word Search" for="usePart"} {forminput} - + + {formhelp note="This may slow search results"} + {/forminput} +
+ + +
+ {formlabel label="And Terms Together" for="useAnd"} + {forminput} + {formhelp note="This may slow search results"} {/forminput}
@@ -68,7 +77,7 @@ {if $words}
{tr}No pages matched the search criteria{/tr}
{/if} {/section} - {pagination usePart=$partialOnOff content_type_guid=$content_type_guid highlight=$words|escape } + {pagination useAnd=$useAnd usePart=$usePart content_type_guid=$content_type_guid highlight=$words|escape } {/strip} -- cgit v1.3