Closed (fixed)
Project:
Views Datasource
Version:
6.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Nov 2009 at 15:22 UTC
Updated:
23 Jun 2010 at 20:50 UTC
I built a view "displaying items of type Comment" but the XML still has "nodes" as the root element and "node" as the container element for each comment.
Comments
Comment #1
allisterbeharry commentedthis is by design in the current release as I didn't think the root and container element names would be significant during usage but I'll change it to use whatever the base table of the view is, in this case comment(s)
Comment #2
sorikan commentedI am currently using alpha3, and I am seeing the same behavior, should I move to the Dev version for this change, or has it simply been pushed back due to other issues?
Otherwise awesome module BTW!
Comment #3
allisterbeharry commentedThis is changed in the dev release (you'll have to wait till the snapshot is created on drupal.org today or you can pull it directly from CVS.) In the xml plugin options you can specify what the root element is, and each row element is named according to what the base table for the view is (users, nodes, etc.)
Comment #4
jafar104 commentedCould it be possible to specify a name for the row element in the future, like the root element can be specified?
Thanks for this awesome module.
Comment #5
allisterbeharry commentedIN 6.x-1.0-beta1 you can specify the top-level child element (row) name as well as the root element name.
Comment #6
allisterbeharry commented