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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Managing DataObjects

Go to End

2 Posts   1156 Views


Forum Moderator, 4102 Posts

6 June 2008 at 7:18am

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?


Forum Moderator, 5523 Posts

6 June 2008 at 8:16pm

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