From 161c1102795805ee665a727e185fb71e58c92110 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 24 Nov 2016 22:38:56 +0100 Subject: help text in sidebar --- data/config.php.dist | 2 ++ data/templates/search/sidebar-searchtips-chat.htm | 23 +++++++++++++++++++++++ data/templates/search/sidebar-searchtips.htm | 23 +++++++++++++++++++++++ data/templates/search/sidebar.htm | 4 ++++ 4 files changed, 52 insertions(+) create mode 100644 data/templates/search/sidebar-searchtips-chat.htm create mode 100644 data/templates/search/sidebar-searchtips.htm (limited to 'data') diff --git a/data/config.php.dist b/data/config.php.dist index 5c3eba8..9bd10e4 100644 --- a/data/config.php.dist +++ b/data/config.php.dist @@ -30,6 +30,8 @@ $GLOBALS['phinde'] = array( 'showFullContent' => false, //search result "hit" template file 'hitTemplate' => 'hit.htm', + //sidebar help text. empty to disable + 'sidebarinclude' => 'search/sidebar-searchtips.htm', //default sort order: "score" or "date" 'defaultSort' => 'score', //database for PuSH subscriptions diff --git a/data/templates/search/sidebar-searchtips-chat.htm b/data/templates/search/sidebar-searchtips-chat.htm new file mode 100644 index 0000000..2cce73a --- /dev/null +++ b/data/templates/search/sidebar-searchtips-chat.htm @@ -0,0 +1,23 @@ +
+

Search tips

+
+
Exclusion
+
+foo -bar
+ +
Logical OR
+
foo OR bar
+ +
Exact phrase
+
"foo bar"
+ +
Partial words
+
foo*
+ +
Particular fields only
+
title:foo
+
domain:example.org
+
nick:somebody
+
after:2016-11-23
+
before:2016-11-23
+
date:2016-11-23
+
diff --git a/data/templates/search/sidebar-searchtips.htm b/data/templates/search/sidebar-searchtips.htm new file mode 100644 index 0000000..f703d44 --- /dev/null +++ b/data/templates/search/sidebar-searchtips.htm @@ -0,0 +1,23 @@ +
+

Search tips

+
+
Exclusion
+
+foo -bar
+ +
Logical OR
+
foo OR bar
+ +
Exact phrase
+
"foo bar"
+ +
Partial words
+
foo*
+ +
Particular fields only
+
title:foo
+
domain:example.org
+
author.name:Snowden
+
after:2016-11-23
+
before:2016-11-23
+
date:2016-11-23
+
diff --git a/data/templates/search/sidebar.htm b/data/templates/search/sidebar.htm index 0c663ee..9247f36 100644 --- a/data/templates/search/sidebar.htm +++ b/data/templates/search/sidebar.htm @@ -23,3 +23,7 @@

Query took {{queryTime}}.

+ +{% if sidebarinclude %} + {% include sidebarinclude %} +{% endif %} -- cgit v1.2.3