Problem/Motivation

This may be useful, to be able to use the views rows source in a new manner.
Indeed, today it returns an array of renderable. Each of those renderable is a row (such renderable may be of type views_view_field for example when one select fields as row style plugin).

Why not adding an option that allows to convert each row as a table of fields?
this allows to more easily inject this data into the slot of a table component for example,
where such component slot could expect an array of depth 2 (depth 1 = row, depth2 = cells)

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

just_like_good_vibes created an issue. See original summary.

just_like_good_vibes’s picture

Issue summary: View changes

just_like_good_vibes’s picture

Assigned: Unassigned » pdureau
Status: Active » Needs review
pdureau’s picture

Assigned: pdureau » just_like_good_vibes
Status: Needs review » Needs work

This new ui_patterns_views_rows_as_fields configuration in the ViewRowsSource plugin is not necessary because:

  • there is already a system to force the fields at the View plugins level
  • "fields" here are related to the API and the configuration model, not necessary the returned renderable

It would be better to catch the returned renderable from some ViewRow plugins, and to tidy it. If we want a list of renderables:

  • the array must not be an associative array
  • the list must not be wrapped in a useless renderable from views module
just_like_good_vibes’s picture

Assigned: just_like_good_vibes » pdureau
Status: Needs work » Needs review
just_like_good_vibes’s picture

Title: [2.1.0] Views Rows source : add an option to be able to return each row as an array of visible fields » [2.1.0] Views Rows source improvement : alow rows to be an array of visible fields when "force using fieds"
just_like_good_vibes’s picture

Title: [2.1.0] Views Rows source improvement : alow rows to be an array of visible fields when "force using fieds" » [2.0.9] Views Rows source improvement : alow rows to be an array of visible fields when "force using fieds"
just_like_good_vibes’s picture

Title: [2.0.9] Views Rows source improvement : alow rows to be an array of visible fields when "force using fieds" » [2.0.9] Views Rows source improvement : rows are arrays of visible fields when "force using fieds" is checked

just_like_good_vibes’s picture

Assigned: pdureau » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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