Downloads

Download tar.gz 9.14 KB
MD5: e2010d60482c2710c89f0a488445eafb
SHA-1: d0e8772cc1d9173c532b59f3785be8d1398962f0
SHA-256: 2d3e830681d32c21b3af297ce247379297f761f86159ea9bb5ff562bf7273a25
Download zip 10.88 KB
MD5: 071a9de949c7e137b6345a160efa570e
SHA-1: 53a7bf423474d551d4e943103770be9449a76b4e
SHA-256: 04c5619cdaa5c317621ef2c8adfd1d9679d7a9cfb76f4d416c4d8eb107b95d16

Release notes

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.

Created by: allisterbeharry
Created on: 25 May 2008 at 08:05 UTC
Last updated: 30 May 2008 at 00:40 UTC
Unsupported

Other releases