Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Problems with ModelAdmin & HtmlEditorField (SS 2.3.2)

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1712 Views
  • brokemeister
    Avatar
    Community Member
    30 Posts

    Problems with ModelAdmin & HtmlEditorField (SS 2.3.2) Link to this post

    Hi!

    I just have the problems, that images are not stored, when I want to save my DataObject.

    Has any one simular problems?

    This is my Model

    class MagazinModelAdmin extends ModelAdmin {

    static $managed_models = array(
    'ContentDataObject'
    );

    static $url_segment = 'eosmagazin'; // will be linked as /admin/products
    static $menu_title = 'Magazin Content Manager';

    }

    This is my getCMSFields:

    $fields = new FieldSet(
             new TabSet("Root",
                new TabSet("Content",
                   new Tab('Main',
                      new PopupDateTimeField("ShowOn", "Erscheinungsdatum"),
                      new PopupDateTimeField("HideOn", "Ausblendungdatum"),
                      new CheckboxField("Disabled", "Verstecken"),
                      new DropdownField("ClassName", 'Content Type', $this->getContentTypeClasses('ContentDataObject')),
                      new TextField("Title", "Titel"),
                      new TextField("Subtitle", "Untertitel"),
                      new CategorizationSetField("Categories", "Kategorien", $contentList),
                      new TextareaField("Teaser", 'Teaser'),
                      new ImageField("TeaserImage", "TeaserBild"),
                      new HtmlEditorField("Text", 'Text'),
                      new TextField("Author", "Autor vom Magazin-Artikel")
                   )
                )
             )
          );

    By the way, the save buttons are on top of the Image-Sidebar in FF, IE and GChrome...

    Cheers,

    Malte

  • brokemeister
    Avatar
    Community Member
    30 Posts
    1712 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.