Skip to content

Instantly share code, notes, and snippets.

@wilr
Created May 14, 2019 22:06

Revisions

  1. wilr created this gist May 14, 2019.
    10 changes: 10 additions & 0 deletions CustomIndex.diff
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    --- a/app/src/Search/CustomerSolrIndex.php
    +++ b/app/src/Search/CustomerSolrIndex.php
    @@ -9,10 +9,14 @@ use SilverStripe\Control\Director;
    */
    class CustomerSolrIndex extends GazetteSolrIndex
    {
    + private static $casting = [
    + 'FieldDefinitions' => 'HTMLFragment',
    + 'CopyFieldDefinitions' => 'HTMLFragment'
    + ];