Hi

I use a view with Services Views and Services 3.x, wich contains taxonomy terms fields.
But in the JSON result, the result of my taxonomy fields are empty.

As someone a solution for this ?

Thanks

Comments

raidcha’s picture

For Information, i applied the last patch found here http://drupal.org/node/1131194 to get field row style available

kylebrowning’s picture

Status: Active » Closed (duplicate)
lefnire’s picture

Version: 6.x-1.x-dev » 7.x-1.0-beta2
Status: Closed (duplicate) » Active

This is still a problem in D7. After reading through #1131194: Allow views.get to return rendered fields for "fields" row style, I don't think this is duplicate of that. Those patches had been committed, and are present in D6 & D7 - but taxonomy terms are still empty when rendering JSON.

lefnire’s picture

This is only a problem with Content: All taxonomy terms. If you use individual term-reference fields like Content: Event Types, it works. My nodes use multiple vocabularies, so to get around this issue I added all the term-reference fields, checked Exclude from display, then aggregated them all in a Global: Custom text. Janky (output JSON is like "term1,,,term2,"), but it works well enough.

ygerasimov’s picture

Category: bug » support
Status: Active » Fixed

@lefnire thank you for the solution.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

beauz’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Status: Closed (fixed) » Active

I'm still seeing empty output for taxonomy term fields...

I've also tried rewriting the output into a global text field however it doesn't seem to be coming through.

Has anyone made any progress with this?

beauz’s picture

Status: Active » Fixed

Nevermind, I've traced this back to an unrelated issue. I had some taxonomy access control permissions blocking the terms coming through.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.