Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement