Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » ModelAdmin and scaffolding on a Page (SiteTree) type

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

Page: 1
Go to End
Author Topic: 508 Views
  • neros3
    Avatar
    Community Member
    51 Posts

    ModelAdmin and scaffolding on a Page (SiteTree) type Link to this post

    Hi there!

    I was just wondering why ModelAdmin scaffolds all my fields nicely when the type is extended from DataObject and when I extend from SiteTree (or Page) I only get 3 "boring" fields and not all of them.

    Is there a way to enable all fields without adding the fields manually via getCmsFields() ?

    Also I just came across DataObjectManager - I feel that its somewhat down the same road of ModelAdmin. Are the usage of these two any different? Anyone deprecated og better suitet for certain purposes?

    Thanks!

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: ModelAdmin and scaffolding on a Page (SiteTree) type Link to this post

    Hi neros3,

    ModelAdmin is setup to scafold DataObject and even though SiteTree/Page is a subclass of that it doesn't do it eh? Not something I've ever needed, but it does annoy me when creating pages and it doesn't scaffold everything for me.

    DOM is a community supported module by UncleCheese (see it's own forum area) it does several things that ModelAdmin does, but with the addition of SS3 it will no longer work as the "DataGrid" is coming. Of course best way to tell is to try 'em both out!

    Barry

    508 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.