2018-04-21 11:29:32 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// vendor/silverstripe/errorpage/src/ErrorPage.php
|
|
|
|
// extends global Page class
|
2021-03-15 03:45:35 +07:00
|
|
|
//namespace App\Pages;
|
2018-04-21 11:29:32 +07:00
|
|
|
|
2022-01-13 11:54:33 +02:00
|
|
|
use SilverStripe\CMS\Model\SiteTree;
|
2020-05-27 09:15:52 +07:00
|
|
|
use SilverStripe\FontAwesome\FontAwesomeField;
|
2018-04-21 11:29:32 +07:00
|
|
|
|
2022-05-10 12:36:40 +02:00
|
|
|
/**
|
|
|
|
* Class \Page
|
|
|
|
*
|
2023-08-04 00:28:22 +02:00
|
|
|
* @property bool $InheritSideBar
|
2022-05-10 12:36:40 +02:00
|
|
|
* @property string $BlockIcon
|
|
|
|
* @property int $SideBarID
|
|
|
|
* @property int $ElementalAreaID
|
|
|
|
* @method \SilverStripe\Widgets\Model\WidgetArea SideBar()
|
|
|
|
* @method \DNADesign\Elemental\Models\ElementalArea ElementalArea()
|
|
|
|
* @mixin \DNADesign\Elemental\Extensions\ElementalPageExtension
|
|
|
|
* @mixin \A2nt\CMSNiceties\Widgets\WidgetPageExtension
|
2023-10-26 05:26:24 +02:00
|
|
|
* @mixin \A2nt\CMSNiceties\GraphQL\ObjectGraphQlEx
|
2022-05-10 12:36:40 +02:00
|
|
|
*/
|
2018-04-21 11:29:32 +07:00
|
|
|
class Page extends SiteTree
|
|
|
|
{
|
2020-05-27 09:15:52 +07:00
|
|
|
private static $db = [
|
|
|
|
'BlockIcon' => 'Varchar(255)',
|
|
|
|
];
|
2019-08-19 15:37:24 +07:00
|
|
|
|
2021-01-14 02:03:21 +07:00
|
|
|
private static $field_include = [
|
|
|
|
'ElementalAreaID',
|
|
|
|
];
|
|
|
|
|
2020-05-27 09:15:52 +07:00
|
|
|
public function getSettingsFields()
|
|
|
|
{
|
|
|
|
$fields = parent::getSettingsFields();
|
|
|
|
|
|
|
|
$fields->addFieldsToTab('Root.Icon', [
|
|
|
|
FontAwesomeField::create('BlockIcon', 'Page link Icon'),
|
|
|
|
]);
|
|
|
|
|
|
|
|
return $fields;
|
|
|
|
}
|
2018-04-21 11:29:32 +07:00
|
|
|
}
|