mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update extend cms docs to include 3.0 API change.
This commit is contained in:
parent
bf91594e4f
commit
aa76aca10d
@ -85,9 +85,9 @@ Create a new file called `zzz_admin/code/BookmarkedPageExtension.php` and insert
|
||||
:::php
|
||||
<?php
|
||||
class BookmarkedPageExtension extends DataExtension {
|
||||
static $db = array('IsBookmarked' => 'Boolean');
|
||||
public static $db = array('IsBookmarked' => 'Boolean');
|
||||
|
||||
public function updateCMSFields(&$fields) {
|
||||
public function updateCMSFields(FieldList $fields) {
|
||||
$fields->addFieldToTab('Root.Main',
|
||||
new CheckboxField('IsBookmarked', "Show in CMS bookmarks?")
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user