Skip to content

Commit

Permalink
fix config line not commented out, template folder rename, missing cl…
Browse files Browse the repository at this point in the history
…ass include
  • Loading branch information
ebakernz committed Mar 17, 2021
1 parent 80a8fc0 commit bb9085d
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 bb9085d

Please sign in to comment.