Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Managing DataObjects

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1026 Views
  • UncleCheese
    4085 Posts

    Managing DataObjects Link to this post

    I'd like to create an area in the CMS where users can just manage DataObjects -- for instance, "Jobs" or "Venues." These are things that don't necessarily have a view on the front end, so I don't need all the Page controls.

    Also is there a way of omitting a page type from the Create dropdown menu?

  • Willr
    Forum Moderator
    5511 Posts

    Re: Managing DataObjects Link to this post

    For managing dataobjects usually theres 2 ways - Using tablefields, complextablefields etc on the page or adding a tab to the cms with GenericDataAdmin or LeftAndMain - http://doc.silverstripe.com/doku.php?id=genericdataadmin. Theres not too much helpful documentation on genericdataadmin but some of the modules use it so with the brief doc linked I suggest you dig through some of the code and copy that as a base. See the CommentAdmin.php file in cms/code/ for an example of LeftAndMain and try downloading the polls module for a example of managing a Poll Dataobject with GenericDataAdmin

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.