Jump to:

22977 Posts in 11667 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » Constant DataObject

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: 809 Views
  • Krigu
    Avatar
    Community Member
    7 Posts

    Constant DataObject Link to this post

    Hi

    I'm new to SilverStripe and I'm trying to create a Page, which holds several information about different companies. However, the companies are devided into 4 different categories. I would like to add a select box to my form (backend), where you can choose one of the 4 categories.

    My idea is to create a DataObject "category" and link the page "company" with it. Now, I don't know where to insert the categories then..

    Does anyone has a suggestion?

    Thanks

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Constant DataObject Link to this post

    Have a read of tutorial 5. It provides some examples of dealing with objects. By the sounds of it you might need a tablefield for managing categories (or you could use a ModelAdmin instance but that could be over the top).

    http://doc.silverstripe.org/doku.php?id=tutorial:5-dataobject-relationship-management

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