Table YoutubePage: renamed to _obsolete_YoutubePage
Table YoutubePage_versions: renamed to _obsolete_YoutubePage_versions
Table YoutubePage_Live: renamed to _obsolete_YoutubePage_Live
<?php
class YoutubePage extends Page
{
static $db = array(
#'YoutubeLink' => 'Text'
);
static $has_one = array(
);
}
class YoutubePage_Controller extends Page_Controller
{
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new TextField('YoutubeLink'), 'YoutubeLink');
return $fields;
}
}
?>