From 19da780facbdf842e01e189a180facc088090ab7 Mon Sep 17 00:00:00 2001 From: Charlie Bergthaler Date: Mon, 26 Mar 2018 19:39:21 +1300 Subject: [PATCH] Rearrange fields in SwiftypeSiteConfig to reflect the Swiftype UI more closely. --- src/Extensions/SwiftypeSiteConfig.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Extensions/SwiftypeSiteConfig.php b/src/Extensions/SwiftypeSiteConfig.php index 82aeb82..578c97d 100644 --- a/src/Extensions/SwiftypeSiteConfig.php +++ b/src/Extensions/SwiftypeSiteConfig.php @@ -48,14 +48,15 @@ public function updateCMSFields(FieldList $fields) 'Root.SwiftypeSearch', array( LiteralField::create('', - '

Swiftype Search Settings

This is a danger zone! Do not change anything here unless you know what you are doing.

'), + '

Swiftype Search Settings

+

This is a danger zone! Do not change anything here unless you know what you are doing.

'), 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'), ) ); }