Skip to content

Commit

Permalink
Update extend cms docs to include 3.0 API change.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Jul 15, 2012
1 parent bf91594 commit aa76aca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/howto/extend-cms-interface.md
Expand Up @@ -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?")
);
Expand Down

0 comments on commit aa76aca

Please sign in to comment.