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.

Data Model Questions /

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

ModelAdmin documentation


Go to End


2 Posts   1632 Views

Avatar
Ben_W

Community Member, 80 Posts

23 February 2011 at 8:22pm

Does anyone know some good ModelAdmin documentation? With some example will be better.
I found those following pages:
http://open.silverstripe.org/wiki/development/modeladmin
http://www.silverstripe.org/data-model-questions/show/5704

One more question. the ModelAdmin seems to be build around the dataobject, ie.
class Category extends DataObject
class Product extends DataObject

If so, does that mean that product can not be a page type to take advantage of the full html text editor. I know that in silverstripe popup form, one can only use a cut down version of html text editor - SimpleHTMLEditorField. Is this still true?

Avatar
swaiba

Forum Moderator, 1899 Posts

23 February 2011 at 10:24pm

How about this...

http://www.silverstripe.org/making-a-crm-with-modeladmin-in-silverstripe-230/
http://doc.silverstripe.org/sapphire/en/reference/modeladmin
http://doc.silverstripe.org/old/recipes:cheat_sheet#modeladmin

If so, does that mean that product can not be a page type to take advantage of the full html text editor. I know that in silverstripe popup form, one can only use a cut down version of html text editor - SimpleHTMLEditorField. Is this still true?

I don't exactly follow this - but yes the popups don't have tinymce HTMLText, but you don't need to use the popup with ModelAdmin - it scaffolds the HTMLField as tinyMCE fine

(btw @Willr - these links should be sticky in this section I think, 3rd time this week I've mentioned them)