Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | field_collection_table-1358068-table-flipped-options.patch | 13.98 KB | duckzland |
flippedtable.patch | 3.59 KB | jdanthinne |
Comments
Comment #1
AlexG-2 CreditAttribution: AlexG-2 commentedIs 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
Comment #2
duckzland CreditAttribution: duckzland commentedCreating 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.
Comment #3
mgwisni CreditAttribution: mgwisni commentedI get the following errors when applying duckzland's patch:
I'd love to be able to use it, any help?
Comment #4
kaido.toomingas CreditAttribution: kaido.toomingas commented@mgwisni did you try to apply this against the dev version #2 worked for me.
Comment #5
mgwisni CreditAttribution: mgwisni commentedI'm actually no longer using the module but I'll come back for the dev version if I need it in the future. Thanks!
Comment #6
supriyarajgopal CreditAttribution: supriyarajgopal commentedDid you find a solution for this AlexG?
I am also in need of this feature..
Comment #7
Donit CreditAttribution: Donit commentedDoesn'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?
Comment #8
Donit CreditAttribution: Donit commentedFails with the current 7.x-1.0-beta5+3-dev version:
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).
Comment #10
kevineinarsson CreditAttribution: kevineinarsson as a volunteer commented