Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Problems with ModelAdmin & HtmlEditorField (SS 2.3.2)


Go to End


2 Posts   2548 Views

Avatar
brokemeister

Community Member, 30 Posts

5 August 2009 at 4:52am

Edited: 05/08/2009 4:53am

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

Avatar
brokemeister

Community Member, 30 Posts

6 August 2009 at 9:59pm