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

Newbie on existing database for content


Go to End


2 Posts   1076 Views

Avatar
tomduncan

Community Member, 2 Posts

19 November 2014 at 2:45am

Hi all,
I am a new person to and SilverStripe.

I have an application that has recipes (as in food)
This is in a single mysql database at the moment.
1. With fields like Course
2. Name of recipe
3. Ingredients needed
4. How to cook
5. Time to prepare
6. comments

What I would like to do is first create a list of courses.
Then when selected it will then show the names of the recipes that meet that requirement.
Then select which recipe which will show it.

Seems simple, I hope.

Can someone give me an idea on how to use the data. I will copy the table into the SilverStripe database.
Or do I need to import the data?

Also at a later stage have login to the area within my site and availability for a user to add a recipe.

Any ideas?

Tom Duncan
Australia

Avatar
probablytony

Community Member, 4 Posts

25 November 2014 at 11:43pm

Sounds simple enough. Have you attempted any of it at all?

I would convert the recipes to a DataObject, although I am not sure if there is an easy way to import them. But once they're loaded there you can do some pretty simple stuff to manipulate it in the front end.