<?php
class NewsItem extends DataObject {
static $db = array("Title" => "Varchar", "Content" => "HTMLText", "ForceHomepage" => "Boolean");
static $has_one = array("NewsPage" => "Page", "File" => "File");
public function getCMSFields_forPopup() {
$fields = new FieldSet();
$fields->push(new Textfield("Title", "Titel"));
$fields->push(new CheckboxField("ForceHomepage", "Auf der Homepage bevorzugt anzeigen"));
$fields->push(new FileIFrameField("File", "Download", $this->File()));
$fields->push(new SimpleTinyMCEField("Content", "Inhalt"));
return $fields;
}
}
?>