I’m building a REST Export View for a certain content type that has a relationship with a Category taxonomy term. When it renders as JSON I get something like this:
{ "title":"New BMW", "field_category":"transportation, motorcycles", "field_category_1":"142,143" }
Where field_category
is using Label formatter and field_category_1
is using Entity ID formatter.
The Category taxonomy term I’m using has an additional field called blog_category_id
. It’s just a text field where the admin sets a 3rd party category ID. I need to display blog_category_id
instead of Taxonomy Id:
{ "title":"New BMW", "field_category":"transportation, motorcycles", "field_category_1":"754,435" }
Looking at what comes out-of-the-box for Drupal Formatter settings (Author, RSS Category, Label, Entity ID, Blazy, Slick Media, Rendered Entity, Thumbnail), none of them have an option to select specific taxonomy fields.
I’m aware that Drupal API has a much more robust API and could easily handle this, but business requirement is to get this done with Drupal View.
Does anyone know of a Drupal module that has the ability to select specific taxonomy field in Rest Export View?