Skip to content

Commit

Permalink
Merge pull request #9 from PlasticStudio/feature/config
Browse files Browse the repository at this point in the history
Code update
  • Loading branch information
ebakernz authored Mar 17, 2021
2 parents 80a8fc0 + bb9085d commit c0a8cc2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Before:
SilverStripe\Control\Controller:
extensions:
- PlasticStudio\Search\SearchControllerExtension
PlasticStudio\Search\SearchPageController:
# PlasticStudio\Search\SearchPageController:
# types:
# docs:
# Label: 'Documents'
Expand Down
1 change: 1 addition & 0 deletions src/SearchPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace PlasticStudio\Search;

use Page;
use SilverStripe\ORM\DB;

class SearchPage extends Page {
private static $description = "Search engine and results page. You only need one of these page types.";
Expand Down
8 changes: 4 additions & 4 deletions src/SearchPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class SearchPageController extends PageController {
public function index($request){

if (Director::isLive()){
Requirements::css('/resources/plasticstudio/search/client/Search.min.css');
Requirements::javascript('/resources/plasticstudio/search/client/Search.min.js');
Requirements::css('plasticstudio/search:client/Search.min.css');
Requirements::javascript('plasticstudio/search:client/Search.min.js');
} else {
Requirements::css('/resources/plasticstudio/search/client/Search.css');
Requirements::javascript('/resources/plasticstudio/search/client/Search.js');
Requirements::css('plasticstudio/search:client/Search.css');
Requirements::javascript('plasticstudio/search:client/Search.js');
}

// get the parameters and variables of this request (ie the query and filters)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<div class="search-results-page">

$AdvancedSearchForm
Expand Down

0 comments on commit c0a8cc2

Please sign in to comment.