Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » adding a small database to a site

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1555 Views
  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    adding a small database to a site Link to this post

    Gurus....

    I was wondering if and how it is possible to add a small database to a site. I would like to make a small resource list. While it should be incorporated into the CMS, there is no page for each resource. Has anyone done anything like that and how would you go about it?

    Thank you

    Nicolaas

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: adding a small database to a site Link to this post

    how many items would the 'resource list' contain?

    on the one hand, you can make each item a 'page' (like how in the tutorials you have each 'staff member' as a page). Well, an object that extends page, anyway.

    Alternatively, you could create a list of items all on one page.

    Is there a need to edit the items on the public-facing site, or just in the CMS?

  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    Re: adding a small database to a site Link to this post

    Hi Siggy

    Thank for your reply. It is just a small list. This situation occurs a lot. A list of products, a list of employees, a list of locations, a small image library, a list of links even, etc... etc... It does not really warrant creating a new page, but it would be nice to have the items structured as children of a page rather than just free text....

    Most of the time, there would be no need to edit them publicly, just through the CMS.

    What is best practice? How would I go about it.... Is there an example somewhere?

    Thank you

    Nicolaas

  • Tim
    Avatar
    Core Development Team
    201 Posts

    Re: adding a small database to a site Link to this post

    While it's currently not well documented, this is what the GenericDataAdmin is specifically designed to do. You can actually use it to build some very complex and powerful web based databases with it.

  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    Re: adding a small database to a site Link to this post

    Thanks. Hey, that looks PERFECT. How would I go about getting some more documentation or shall I just give it a try? Do you basically create a CMS for it, similar to the one for editing pages? Are there any examples to look at? Thanks again!

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