Permalink
Browse files

Update extend cms docs to include 3.0 API change.

  • Loading branch information...
1 parent bf91594 commit aa76aca10dcaf626a04d4c62e826ef0a1d5f3a81 @wilr wilr committed Jul 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/en/howto/extend-cms-interface.md
@@ -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?")
);

0 comments on commit aa76aca

Please sign in to comment.