mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
API Use new DBField::getSchemaValue()
This commit is contained in:
parent
4b3f4ba01c
commit
4f19113c5c
@ -39,6 +39,10 @@ class SiteTreeFileExtension extends DataExtension {
|
|||||||
'BackLinkTracking'
|
'BackLinkTracking'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
private static $casting = array(
|
||||||
|
'BackLinkHTMLList' => 'HTMLFragment'
|
||||||
|
);
|
||||||
|
|
||||||
public function updateCMSFields(FieldList $fields) {
|
public function updateCMSFields(FieldList $fields) {
|
||||||
$fields->insertAfter(
|
$fields->insertAfter(
|
||||||
'LastEdited',
|
'LastEdited',
|
||||||
@ -60,7 +64,7 @@ class SiteTreeFileExtension extends DataExtension {
|
|||||||
public function BackLinkHTMLList() {
|
public function BackLinkHTMLList() {
|
||||||
$viewer = new SSViewer(["type" => "Includes", __CLASS__ . "_description"]);
|
$viewer = new SSViewer(["type" => "Includes", __CLASS__ . "_description"]);
|
||||||
|
|
||||||
return $viewer->process($this->owner)->forTemplate();
|
return $viewer->process($this->owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user