Closed (fixed)
Project:
Views XML Backend
Version:
7.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2010 at 19:09 UTC
Updated:
16 Feb 2012 at 19:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
mugunth commentedI tried the patch on views3 version: 7.x-3.0-beta3.
But while creating a new view (after selecting XML option) i get following errors:
Error message
Notice: Undefined index: field in views_plugin_display->get_plugin() (line 709 of C:\xampp\htdocs\drupal7\sites\all\modules\views\plugins\views_plugin_display.inc).
Notice: Undefined property: xml_views_handler_field::$table_alias in xml_views_handler_field->query() (line 38 of C:\xampp\htdocs\drupal7\sites\all\modules\xml_views\handlers\xml_views_handler_field.inc).
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "" in xml_views_plugin_query_xml->execute() (line 55 of C:\xampp\htdocs\drupal7\sites\all\modules\xml_views\xml_views_plugin_query_xml.inc).
Notice: Undefined index: field in view->init_query() (line 573 of C:\xampp\htdocs\drupal7\sites\all\modules\views\includes\view.inc).
Fatal error: Call to a member function xpath() on a non-object in C:\xampp\htdocs\drupal7\sites\all\modules\xml_views\xml_views_plugin_query_xml.inc on line 56
Comment #2
joostvdl commentedI would very much like to see a D7 prot of this module.
Comment #3
kika commentedsubscribe
Comment #4
sheldon rampton commentedYeah, upgrade this thing to D7. It's way cool and opens up a lot of potential power for Drupal as an XML database.
Comment #5
andypostmaybe better to join forces with #981810: views_datasource module Drupal 7 port
Comment #6
Rushwind commentedViews Datasource, like most projects that involve Drupal and external data sources, is about taking Drupal content and exporting it to another system.
XML Views, on the other hand, is about taking external data (in the form of an XML file) and displaying it within Drupal.
The above patch addresses a function-naming inconsistency between D6 and D7. However, even with the patch installed, I have not found a place to create a View in Drupal that is of the "XML" type.
I have done some small amount of module-writing and editing, but there is something different between the way that D6's Views configuration page is laid out and the D7 layout that is preventing this from working.
If anyone has done D6 to D7 module porting, some insight into this would be helpful.
Comment #7
vaidik commentedSubscribing and eagerly waiting for the D7 release.
Comment #8
dawehnerOkay here is a new version, which fixes all issues at least for me.
IMPORTANT: Some of the fixes required to fix views itself. Please use the DEV release of tomorrow or git.
Comment #9
andypostGreat, waiting for 7.x-1.0rc1
Comment #10
sirtetWould also love to see something like this for D7...
As for joining forces, the next similar module to this, as far as i see is
http://drupal.org/project/yql_views_query
which also has only requests for a D7 version.
i searched quite a bit, but did not find any other modules that bring external data sources into views.
only browsed through the first 300 or so of the over 2000 results for modules with keyword "views":
http://drupal.org/search/apachesolr_multisitesearch/views?filters=ss_met...
Comment #11
twistor commentedThe patch above those an error about views_process_dependency(). It's an old bug, I went to fix it and wound up somewhere else.
There are lots of hanging bits, but it's operating quite nicely for simple tasks. I want to post this early as I'm curious to see the reception.
Comment #12
itangalo commentedI get the following errors when trying to apply this patch:
This was when trying to apply the patch to the master branch (which was the only branch available on this project). Is there another patch I should apply first, or am I missing something else?
EDIT: The patch applies well when creating these files with empty content. :-)
Comment #13
dawehnerYou know porting a module which rewriting everything is not the way to get something done... Make small chunks which are easy to fix is the root to go.
Comment #14
itangalo commentedBeen playing around with the (patched) D7 version for a little while now, and I would definitely say it works well and could be a new branch. Just saying.
Comment #15
mitchell commentedNewly created views_xml_backend is currently @ http://drupal.org/sandbox/twistor/1365800
Diff from #11 is @ http://drupalcode.org/sandbox/twistor/1365800.git/commitdiff/b4bb86b8f06...
Comment #16
itangalo commented@mitchell: Awesome! Looking forward to seeing this brought further. (I'm assuming that your intention is that the two modules will merge rather than exist in parallel.)
Comment #17
itangalo commentedPatch from #11 attached, now with new file additions included.
I don't know whether this is the way for the module to evolve, but I'm gonna use this as an example of external Views backend on a course I'm doing. In case students want to install and try the module themselves, I'm including a zip of it here.
Comment #18
twistor commentedI spoke with Dmitri, and he gave me the project.
From Dmitri,
My initial reaction is to move everything over to the sandbox, and bump it to a full project named "Views XML Backend".
My reasoning is that:
Thoughts, concerns?
Comment #19
itangalo commentedI like the new name better, but continuing this project would be fine as well. :-)
Rock on!
Comment #20
twistor commentedMoving to views_xml_backend.
Comment #21
twistor commentedI'm going to mark this fixed.
New issues with the d7 branch should be created separately.