PHP code example of otago / programme-cms-field
1. Go to this page and download the library: Download otago/programme-cms-field library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
otago / programme-cms-field example snippets
use Otago\ProgrammeCmsField\Forms\ProgrammePickerField;
public function getCMSFields(): FieldList
{
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Main', ProgrammePickerField::create('ProgrammeID'));
return $fields;
}