<?php
class WidgetPage extends SiteTree {
	
	public static $db = array(
	);

	public static $has_one = array(
	);
    
    public static $defaults = array(
		"ShowInMenus" => 0
	);
    
    // this pagetype cannot be created in the site root:
    public static $can_be_root = false;

	
	public function getCMSFields() {
		$fields = parent::getCMSFields();
        $fields->removeByName('ShowInSearch');
        $fields->removeByName('ProvideComments');
		return $fields;
	}
    
    public function Content() {
        return DBField::create('HTMLText', $this->Content); 
    }
	
}
class WidgetPage_Controller extends Page_Controller {

	
	public static $allowed_actions = array ();

	
}