Feeds set-up for Aps
Here is some documentation for setting up feeds in Drupal 7 so that An iphone or Android ap can access the data.
The data brought together using Views and then output using the JSON from the "views_datasource" module.
- Install Views Datasource Module
- Turn on the submodule of "Views JSON" created by the datasouce module.
- Build your View using the Format of "JSON data document" with the following settings (screenshot)
[[{"type":"media","view_mode":"media_original","fid":"2","attributes":{"alt":"","class":"media-image","typeof":"foaf:Image"}}]] - Add any fields you want to be present in the feed. (see below)
- Set up a path to show it as an xml document (see below)
[[{"type":"media","view_mode":"media_original","fid":"3","attributes":{"alt":"","class":"media-image","typeof":"foaf:Image"}}]] - Some alteration may be needed depending on whether the output for any given field need html or not. Those alterations are made on a field by field basis within the view.