1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
class GalleryImage extends DataObject {
    static $db = array(
        'Title' => 'Varchar',
        'Description' => 'HTMLText'
    );
    static $has_one = array(
        'Img' => 'Image',
        'Gallery' => 'GalleryPage'
    );

    function getCMSFields_forPopup() {
        $fields = new FieldSet();
        $fields->push( new TextField('Title') );
        $fields->push( new TextareaField('Description','Beschreibung') );
        $fields->push( new ImageField('Img','Bild') );
        return $fields;
    }
}

?>