From f98e891b454e5677bdf61f476e366b01af713b50 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 17 Nov 2016 18:21:14 +0100 Subject: Configuration for default sort order --- data/config.php.dist | 2 ++ data/templates/search/sidebar.htm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/config.php.dist b/data/config.php.dist index 9c432f9..19a3221 100644 --- a/data/config.php.dist +++ b/data/config.php.dist @@ -34,5 +34,7 @@ $GLOBALS['phinde'] = array( 'showFullContent' => false, //search result "hit" template file 'hitTemplate' => 'hit.htm', + //default sort order: "score" or "date" + 'defaultSort' => 'score', ); ?> \ No newline at end of file diff --git a/data/templates/search/sidebar.htm b/data/templates/search/sidebar.htm index a48b6e8..0c663ee 100644 --- a/data/templates/search/sidebar.htm +++ b/data/templates/search/sidebar.htm @@ -1,8 +1,8 @@ {% if hitcount > 1 %} Sort by:
- Relevance - Date + Relevance + Date


-- cgit v1.2.3