for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sunnysideup\GetSiteControl\Extensions;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\LiteralField;
use SilverStripe\Forms\TextField;
use SilverStripe\ORM\DataExtension;
class SiteConfigExtension extends DataExtension
{
private static $db = [
'GetSiteControlAPI' => 'Varchar(30)',
];
public function updateCMSFields(FieldList $fields)
$fields->addFieldsToTab(
'Root.GetSiteControl',
[
TextField::create(
'GetSiteControlAPI',
'GetSiteControl API Key'
)
->setDescription('Add just the key at the end of the link //l.getsitecontrol.com/3w0pvyd7.js, API Key is 3w0pvyd7'),
LiteralField::create(
'GetSiteControlAPIHelp',
'Go to: <a target="_blank" href="https://dash.getsitecontrol.com/">GetSiteControl Dashboard</a>'
),
]
);
}