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.

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

Avatar
UncleCheese

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?

Avatar
Willr

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