"Rewrite the output of this field" and other special outputs with AddressField don't work.
the output has the same value as the source

Comments

nd987’s picture

I think this is very important. For example, I'm trying to put a node's taxonomy term tid into my api, but it's impossible without Rewrite, since Views doesn't natively expose the tid as a format. Only alternative I can see is to write your own Service module :(

pau1_m’s picture

This may be a duplicate.

Answer here http://drupal.org/node/1666244#comment-6182424

nd987’s picture

It's basically the same issue, but the solution from that issue is not good enough for the long term. If Services is going to have tight Views integration like this, it should work with the standard Views functionality as far as possible, IMO. Having to hunt around and figure out you have to write your own PHP field to change anything isn't a solution, especially when you can use rewrites on everything else.

I know there must be technical hurdles, but I think they are worth working out.

dippers’s picture

Try my patch 2b in #1917032: Search API with Services Views which should render all fields with rewrite handlers.

Exploratus’s picture

I agree with nd987.

I applied patch #14 from https://drupal.org/node/1917032 and now I was able to see the results from "Rewrite the output of this field".

Thanks!

kylebrowning’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)