Releases for Views Datasource
views_datasource 6.x-1.0-alpha3
| Download | Size | md5 hash |
|---|---|---|
| views_datasource-6.x-1.0-alpha3.tar.gz | 21.13 KB | d2b6535969d08ec27cec4c1cb11d1261 |
Fixed:
http://drupal.org/node/557282
http://drupal.org/node/307223
http://drupal.org/node/306066
Added Atom renderer to views_xml. Added SIOC renderer to views_rdf. Added
hCalendar renderer to views_xhtml. Removed dependency of all plugins on
the 'unformatted' row plugin. To upgrade from the previous version you should
first disable the module, delete the previous version's files, place the new
version into the directory, then re-enable the module.
views_datasource 6.x-1.x-dev
| Download | Size | md5 hash |
|---|---|---|
| views_datasource-6.x-1.x-dev.tar.gz | 22.05 KB | 43fe7ad0067902921c6fb7aab1ed2c6b |
Committed patch by icylace (http://drupal.org/node/627384#comment-2257878):
1. Rewrote the JSON renderer. A preprocess step for making MIT Simile/Exhibit JSON has been added to streamline rendering. json_encode() will be used if it's available otherwise rendering will be done based on code from the drupal_to_js() Drupal core function. This allows for all data types including nested objects and arrays to be encoded properly. Preview rendering will be done using a more hacked version of the code from drupal_to_js() to allow for pretty-printing.
2. Reorganized the style settings screen.
3. Changed to the array form of str_replace() in views_json_encode_special_chars().
4. Empty fields are now included. I don't know why they were originally excluded.
5. Now using the "application/json" content type.
6. Renamed views_json_get_json() to views_json_get(). It now returns an object by default and also has an optional parameter to return the raw JSON string.
1. Renamed views_json_strip_illegal_chars() to views_json_check_label(). It's less of a misnomer and more informative of its intended use.
2. Corrected function comments for views_json_check_label().
3. Using views_json_check_label() on object labels as it should be.
views_datasource 5.x-1.0-alpha2
| Download | Size | md5 hash |
|---|---|---|
| views_datasource-5.x-1.0-alpha2.tar.gz | 52.9 KB | 0f7be15e5c7130e518b32daecf9d72f1 |
Exhibit JSON output now validates with the validator at
http://simile.mit.edu/babel/validator Added simple JSON support to views_json
Added views_rdf plugin with FOAF renderer. Added views_xhtml plugin with hCard
renderer.
views_datasource 6.x-1.0-alpha2
| Download | Size | md5 hash |
|---|---|---|
| views_datasource-6.x-1.0-alpha2.tar.gz | 14.57 KB | 8935c6eef2e5b69c7b1db1ec436745b9 |
Exhibit JSON output now validates with the validator at
http://simile.mit.edu/babel/validator Added simple JSON support to views_json
Added views_xml plugin with raw XML and OPML renderer. Added views_rdf plugin
with FOAF renderer. Added views_xhtml plugin with hCard renderer.
views_datasource 5.x-1.0-alpha1
| Download | Size | md5 hash |
|---|---|---|
| views_datasource-5.x-1.0-alpha1.tar.gz | 45.78 KB | a429fe9dd02d5d6e9b0c510f2f74b72e |
This is a proof-of-concept release with working views_json and views_xml plugins for Drupal 5. The available formats are Exhibit JSON, OPML, and Raw XML.
views_datasource 6.x-1.0-alpha1
| Download | Size | md5 hash |
|---|---|---|
| views_datasource-6.x-1.0-alpha1.tar.gz | 9.14 KB | e2010d60482c2710c89f0a488445eafb |
This is a proof-of-concept release with a working views_json plugin for Drupal 6. In the Views interface simply select the view style as JSON data document (Exhibit format only) and the row style as Unformatted (separator must be |). Because the template changes the page Content-type to text/javascript and immediately exits Drupal, the live preview will throw an error. This can be ignored; just save your view as a page and view it normally at the URL to get the JSON output. I forgot to remove a debug print statement at the top so you will see Array
(
[format] => Exhibit
)
before the JSON output.
Edit views-view-json.tpl.php and comment out the print_r($options); on line 17.
