1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
class ServicesPageNew extends Page {
    static $db = array(
    'Description' => 'Text',
        'Webdesign' => 'HTMLText',
        'Code' => 'HTMLText',
        'Printdesign' => 'HTMLText',
        'Logodesign' => 'HTMLText',
        'Hosting' => 'HTMLText',
        'Corporate' => 'HTMLText',
        'Textilien' => 'HTMLText',
        'Bildbearbeitung' => 'HTMLText',
        'Allinkl' => 'HTMLText',
        'Sonstiges' => 'HTMLText'
    );
  
   function getCMSFields() {
        $fields = parent::getCMSFields();
    $fields->removeFieldFromTab('Root.Content.Main', 'Content');
    $fields->addFieldToTab('Root.Content.Main', new TextField('Description','beschreibung der Seite'));

    $fields->addFieldToTab("Root.Content.Services",new TabSet('ServicesSet',
      new Tab('Webdesign', new HTMLEditorField("Webdesign")),
      new Tab('Code', new HTMLEditorField("Code")),
      new Tab('Printdesign', new HTMLEditorField("Printdesign")),
      new Tab('Logodesign', new HTMLEditorField("Logodesign")),
      new Tab('Hosting', new HTMLEditorField("Hosting")),
      new Tab('Corporate', new HTMLEditorField("Corporate")),
      new Tab('Textilien', new HTMLEditorField("Textilien")),
      new Tab('Bildbearbeitung', new HTMLEditorField("Bildbearbeitung")),
      new Tab('Allinkl', new HTMLEditorField("Allinkl")),
      new Tab('Sonstiges', new HTMLEditorField("Sonstiges"))
        )); 

        return $fields;
    }
}

class ServicesPageNew_Controller extends Page_Controller{

}