Jump to:

22976 Posts in 11620 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » dataobject or page?

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

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

Page: 1
Go to End
Author Topic: 1003 Views
  • maryfran
    Avatar
    Community Member
    12 Posts

    dataobject or page? Link to this post

    Hi!

    I am not sure I completely understand databojects. I need to create a site that has products like an e-commerce site but does not sell them. I thought that they should be pages that then went into a holder page (such as in the second tutorial), but I would want several products from each category listed on a main products page.

    But then I started reading and it seemed that maybe I want to create the products as data objects using modeladmin?

    I am a wordpress convert, so sorry if I am just missing something obvious.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: dataobject or page? Link to this post

    A page is a dataobject so anything you need to use with DataObjects you can do with Pages. The decision as to which is use is a matter of personal preference as you can usually build anything using either method. If you make something a 'Page' then its easily to see in the SiteTree in the CMS and makes it easy to move around / see the structure of the site. With dataobjects you won't 'see' them in the Site Tree and you'll have to setup a Admin interface (like ModelAdmin) to manage the objects rather then using the standard tree.

  • maryfran
    Avatar
    Community Member
    12 Posts

    Re: dataobject or page? Link to this post

    Thank you for clarifying. I was afraid I was going to get started and things were not going to work properly.

    I think products will best be created as dataobjects and managed through the model admin then.

  • amdayton
    Avatar
    Community Member
    8 Posts

    Re: dataobject or page? Link to this post

    Thanks, I also found this helpful. This is one of those things that didn't seem completely obvious coming to SS fresh...

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