The patch changes rendering of services views and adds new feature:

  • Added new option Services array to multiple field settings on the views field configuration form.
  • Reworked services_views_execute_view() function to support this new option.
  • Depreceated views_plugin_display_services->execute() and render() methods.

Different combinations of Services Raw (Raw) and Services Array (Array) options produce:

  • array of raw values: Raw == TRUE (Array doesn't matter)
  • array of separately rendered values with render(): Raw == FALSE, Array = TRUE
  • array of rendered values with $field->theme(): Raw == FALSE, Array = FALSE

i.e. settings Raw implies setting Array.

Also, if a field cardinality = 1, resulting array is resetted (i.e. - no array)

Comments

OnkelTem’s picture

Status: Active » Needs review
marcus178’s picture

Do you have an updated version of this as patch won't work on any of the current versions.

OnkelTem’s picture

StatusFileSize
new5.69 KB

Oh, what an old crap, I forgot I made it once.
Actually, I created a fork of services_views as my changes was huge.
I haven't published it yet, but I'll try to attach gzip now.

Please try it.

P.S. Fix the name of the uploaded file as it is renamed to tar_.gz

pakmanlh’s picture

Status: Needs review » Closed (outdated)

I was able to show multiple term reference field values as soon as I removed all the style settings inside the field views configuration.
So I think that means this issue is gone.