From 3faf92507dd4259303e8789039ba2fed70a35617 Mon Sep 17 00:00:00 2001 From: Nathan Glasl Date: Mon, 21 Nov 2016 14:38:16 +1100 Subject: [PATCH] Allowing template customisation. --- README.md | 2 +- code/pages/ExtensibleSearchPage.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df7a704..adae1ee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [extensible-search](https://packagist.org/packages/nglasl/silverstripe-extensible-search) -_The current release is **3.0.2**_ +_The current release is **3.0.3**_ A module for SilverStripe which will allow user customisation and developer extension of a search page instance, including analytics and suggestions. diff --git a/code/pages/ExtensibleSearchPage.php b/code/pages/ExtensibleSearchPage.php index df2ab14..e7550e4 100644 --- a/code/pages/ExtensibleSearchPage.php +++ b/code/pages/ExtensibleSearchPage.php @@ -512,6 +512,7 @@ public function index() { // Determine the template to use. + $this->extend('updateTemplates', $templates); return $this->renderWith($templates); } } @@ -839,6 +840,7 @@ public function getSearchResults($data = null, $form = null) { // Determine the template to use. + $this->extend('updateTemplates', $templates); $output = $this->customise($results)->renderWith($templates); // Determine whether analytics are to be suppressed.