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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

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

Help!!! I need to create dataObjects that are managed by front end forms and displayed in other parts of the site


Go to End


1179 Views

Avatar
silversunhunter

Community Member, 6 Posts

20 April 2016 at 10:05am

I need to create the following hierarchy
table of "Archives" (year, title, description)
each Archive can have many "Sections" (title, description, cover photo)
each Section can have many "Items"(photo, title, description)

A user can create an archive its sections and its items all through front end forms.

Then there is an "Archives" page that shows the archive titles, click one and it shows that archives sections and then click one and you can see the items.

I am pretty sure I create a dataObject for each piece right? but I do not know where to put the many_many or has_many and I do not know how to make front end pages for creating the data or how to make a page that assembles it all to view. I am so lost. HELP!