Hi,
for a project, I was in need of this great module, but I needed to output the entities as columns instead of rows, so I've made enhancements…
Here's a patch for that. In the formatter options, you can now select between Rows and Columns.
As bonus, also a checkbox to show or hide to table headers.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AlexG-2’s picture

Is there a possibility to set one of the rows as a headerrow and another as a headercolumn? Something like that:
______| data A | data B | data C
data 1 | data I | data II | data III
data 2 | data IV | data V | data V|
data 3 | data VI | data VII | data VIII

duckzland’s picture

Creating a new improved patch that allow user to choose whether to flip the table or not and choose a field inside the field collection to act as the replacement value for the horizontal header.

mgwisni’s picture

I get the following errors when applying duckzland's patch:

patching file field_collection_table.module
Hunk #6 FAILED at 399.
Hunk #7 FAILED at 407.
2 out of 7 hunks FAILED -- saving rejects to file field_collection_table.module.rej

I'd love to be able to use it, any help?

kaido.toomingas’s picture

@mgwisni did you try to apply this against the dev version #2 worked for me.

mgwisni’s picture

I'm actually no longer using the module but I'll come back for the dev version if I need it in the future. Thanks!

supriyarajgopal’s picture

Status: Needs review » Active

Did you find a solution for this AlexG?
I am also in need of this feature..

Donit’s picture

Issue summary: View changes

Doesn't work with latest 7.x-1.0-beta5 version. I think the patch and its features are very useful. Will it ever be part of a release?

Donit’s picture

Fails with the current 7.x-1.0-beta5+3-dev version:

patching file field_collection_table.module
Hunk #1 FAILED at 19.
Hunk #2 FAILED at 34.
Hunk #3 FAILED at 132.
Hunk #4 succeeded at 132 with fuzz 2 (offset -7 lines).
Hunk #5 FAILED at 175.
Hunk #6 FAILED at 246.
Hunk #7 FAILED at 254.
6 out of 7 hunks FAILED -- saving rejects to file field_collection_table.module.rej

Notice: Undefined variable: field_options in field_collection_table_field_formatter_view() (line 157 of /sites/all/modules/field_collection_table/field_collection_table.module).

  • kevineinarsson committed d3cb1b0 on 7.x-1.x
    Issue #1358068 by kevineinarsson, jdanthinne, duckzland: Flipped table
    
kevineinarsson’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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