aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/search.tpl
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-02-13 18:36:55 +0100
committerplegall <plg@piwigo.org>2016-02-13 18:36:55 +0100
commit713bc497466a364c97c27398c0264699c4db2c9a (patch)
tree9ed7d8632b52a175f7c2c8d04debe8c3ffe3bc78 /themes/default/template/search.tpl
parenta6fbaf69c71c3b39666a6323c4c6bbb7cbb98310 (diff)
feature #355, apply search by word on tags
we "simulate" a search by tag, but we still perform a "search by words" AND "search by tags", which lead to different result compared to "word on title OR file OR description OR tags"
Diffstat (limited to 'themes/default/template/search.tpl')
-rw-r--r--themes/default/template/search.tpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/themes/default/template/search.tpl b/themes/default/template/search.tpl
index 1a12e9832..4129746bd 100644
--- a/themes/default/template/search.tpl
+++ b/themes/default/template/search.tpl
@@ -47,6 +47,9 @@ jQuery(document).ready(function() {
<label><input type="checkbox" name="fields[]" value="name" checked="checked"> {'Photo title'|translate}</label>
<label><input type="checkbox" name="fields[]" value="comment" checked="checked"> {'Photo description'|translate}</label>
<label><input type="checkbox" name="fields[]" value="file" checked="checked"> {'File name'|translate}</label>
+{if isset($TAGS)}
+ <label><input type="checkbox" name="search_in_tags" value="tags"> {'Tags'|translate}</label>
+{/if}
</p>
</fieldset>