Jump to:

23358 Posts in 17874 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Data entry idiom?

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: 954 Views
  • Romeo
    Avatar
    Community Member
    67 Posts

    Data entry idiom? Link to this post

    As I get to know SilverStripe, I'm always interested in finding the best ways of doing certain things, the best 'idioms' if you like. One area where I've spent some time playing and I'm still not certain how best to do it is in what might loosely be termed 'data entry'. For the site I'm working on, for example, we need to input quite a few simple Student records (name, institution, project, etc). A Student isn't a page, though - there's no reason for the Student class to extend Page, it just needs to extend DataObject. How then, do I enter a bunch of DataObjects into the system? If I do it via the CMS back end, at some point I have to think in terms of pages. One thing I tried was to create a Students page which was simply a holder for Student records (and which allowed me to enter them via ComplexTableField), and which was not to be displayed in menus, etc., but this felt kludgy. It feels as if the CMS back end should be about pages which display in the site - that's what it's set up to do.

    An obvious alternative is to do it via the front end. But the problem with this, of course, is that it then makes a rather messy split of site maintenance functionality, with some being done via the CMS back end and some via the front end - perhaps a little hard to explain to a non-techie user (the sort of person I'm developing the site for).

    How do other more experienced SilverStripers do this kind of thing? Incidentally, I suddenly have a strange feeling I've asked this question before, so apologies if I come across as a stuck record (if that expression means anything to those who have grown up in an MP3 world).

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: Data entry idiom? Link to this post

    Use ModelAdmin. It's designed for management of large data sets - exactly this kind of thing.

  • Romeo
    Avatar
    Community Member
    67 Posts

    Re: Data entry idiom? Link to this post

    Absolutely, yes. A few minutes after making my post, I came to that section in the Silverstripe book, and felt a bit stupid... It looks exactly what I need and I wish I'd known about it a few days ago.

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