meganem / bc-prototype

Repo for developing functional, integrated prototype for Bloomcase
0 stars 0 forks source link

Make sample JSON data for presentations #5

Closed meganem closed 10 years ago

meganem commented 10 years ago

So we can test it.

meganem commented 10 years ago

Example from Elijah:

{ projectref: 17, presentationid: 50013, presentationTitle: "My Cool Presentation (2)", introSlideType: 1, introSlideTitle: "Blah blah", introSlideContent: "Blah blah blah", introSlideImage: "/myImage/image.jpg", endSlideType: 1, endSlideTitle: "Blah blah", endSlideContent: "Blah blah blah", endSlideImage: "/myImage/image.jpg", slides: [ {order: 0, nid: 17, slideType: 1}, {order: 1, nid: 5, slideType: 3} ] }

meganem commented 10 years ago

@emeeks I've uploaded a JSON file to the JSON folder. Check it out and let me know what you think.

We have to use quotes around the integers because I don't have a way to create an integer field in Drupal, just plain text fields.

I guess since we are storing the slides data in a plaintext field in Drupal, we could change the way those are displayed to use integers instead of strings, since we are not planning to store each element of that array in the database in Drupal (just the block of text for the whole array).

Thoughts?

meganem commented 10 years ago

we are done for now.