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:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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


Go to End

3 Posts   787 Views


Community Member, 193 Posts

19 July 2010 at 9:29pm

I read documentation but is not clear the difference between extends Page and extends DataObject when i create a new class.
If I create a new page type what I must use?


Forum Moderator, 1899 Posts

19 July 2010 at 9:34pm

extending Page is what you want.

when you extend Page, you get the stuff from DataObject.

I suggest you read this...


Forum Moderator, 5523 Posts

19 July 2010 at 10:44pm

Page extends SiteTree which extends DataObject. So you get all the functionality of dataobjects in your Page objects with a ton of stuff from SiteTree sometimes this is useful (say for page types in the cms - where you want to extend page) and sometimes its not so useful (eg in this forum, each post is a dataobject since no need to 'create' it as a page).