Skip to content

Commit

Permalink
Rearrange fields in SwiftypeSiteConfig to reflect the Swiftype UI mor…
Browse files Browse the repository at this point in the history
…e closely.
  • Loading branch information
ichaber committed Mar 26, 2018
1 parent 63b2973 commit 19da780
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Extensions/SwiftypeSiteConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ public function updateCMSFields(FieldList $fields)
'Root.SwiftypeSearch',
array(
LiteralField::create('',
'<h3>Swiftype Search Settings</h3><h4>This is a danger zone! Do not change anything here unless you know what you are doing.</h4>'),
'<h3>Swiftype Search Settings</h3>
<h4>This is a danger zone! Do not change anything here unless you know what you are doing.</h4>'),
CheckboxField::create('SwiftypeEnabled', 'Swiftype Search Enabled')
->setDescription('Turning this off will mean that search is disabled and JS will not be loaded.'),
TextField::create('SwiftypeAccessKey', 'Swiftype Access Key'),
TextField::create('SwiftypeAPIKey', 'Swiftype API Key'),
TextField::create('SwiftypeEngineSlug/ID', 'Swiftype Engine Slug'),
TextField::create('SwiftypeEngineKey', 'Swiftype Engine Key'),
TextField::create('SwiftypeEngineSlug', 'Swiftype Engine Slug'),
TextField::create('SwiftypeDomainID', 'Swiftype Domain ID'),
TextField::create('SwiftypeAccessKey', 'Swiftype Access Key'),
)
);
}
Expand Down

0 comments on commit 19da780

Please sign in to comment.