Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
Allowing template customisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Nov 21, 2016
1 parent 847019f commit 3faf925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 2 additions & 0 deletions code/pages/ExtensibleSearchPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ public function index() {

// Determine the template to use.

$this->extend('updateTemplates', $templates);
return $this->renderWith($templates);
}
}
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3faf925

Please sign in to comment.