Closed (duplicate)
Project:
Services Views
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2012 at 15:09 UTC
Updated:
24 Aug 2015 at 21:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sayembd commentedSimilar thing happens when I add "Content:Thumbnail"!
Comment #2
acrosmanI'm still seeing this issue in the lastest dev release (from 4/29/2013).
Comment #3
nravens commentedI have the same issue. Can't add a path or link to the nodes of XML feeds. Makes the feed useless in my case. I can't even get absolute URLs for category fields...
Is their another way to add node url's to xml output via services/services_views and views?
Comment #4
leewillis77 commentedConfirmed here with 7.x-1.0-beta2
Comment #5
mp165 commentedsame issue here.
Comment #6
mp165 commentedi just realized that i can get the path (and other fields) to show up using the views resource (which seems to use the master display) rather than the resource path set up when i add a services display in the view itself. not sure why it doesn't work in both situations though.
Comment #7
marcus178 commentedI have the same problem, all fields show when using the views resource by not when using the resource generated by this module.
Comment #8
areynolds commentedConfirming this issue as well.
Relevant code is in views_plugin_display_services.inc in this foreach loop which maps field labels to their values in the View to be output:
The problem is that path fields don't have a field_alias, so "isset($item->{$field->field_alias}" fails.
I'm **guessing** there's a more abstract way to do this using other code in cTools or Views. It could be that architecturally we should be doing this rendering in a style plugin instead of a display. Hoping someone else has a bit of input on these matters?
Comment #9
areynolds commentedThis is NOT a good patch, this is a quick fix that I just implemented to get around this issue; might help someone until we can get some better feedback on this problem.
Comment #10
areynolds commentedFurther reinforcing how bad this patch is, a quickly re-rolled version.
Comment #11
derekwebb1 commentedThis is still a problem! -_-
Maybe I should just create a menu callback to return views data - bypass services views altogether. This module has had me pulling my hair for days now. And there is no end in sight. Would definitely not recommend!
Patch in #10 seems to work to get paths to show again (I say again since I saw them right after I first set up this module - using the views resource; not the generated (per-view resources)
Comment #12
kylebrowning commentedFixed #2127541: Path does not render correctly
Comment #13
kylebrowning commented