Closed (fixed)
Project:
Field Collection Table
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2011 at 14:37 UTC
Updated:
29 Sep 2011 at 11:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
tim.plunkettViews doesn't do it, CCK multigroup doesn't do it, and even Station module doesn't do it for its playlists.
If you have an idea of how to iterate through a list of tabular data and discover when a column is unused, I'd love to hear it.
Marking postponed for now, but I know of no way to accomplish this.
I appreciate you filing this as a feature request, not a bug! :)
Comment #2
tim.plunkettI think this is likely a bad idea, since it's bad for performance and might break nested field collections and bunches of other things (it has to loop through each row and field after being populated, and then re-loop through each row). But it is a valid use case. I might be able to make this extensible from a custom theme/module...
We'll see. Please apply this patch, clear your caches, then go to admin/config/user-interface/field_collection_table.
Comment #3
justmagicmaria commentedAgain, thanks the the blazingly fast response to my request! I applied the patch, cleared the cache a few times, then switched the config setting to Hide empty columns. Unfortunately, it hides the wrong column. I have three, the first two which have data, and the last which is empty. It hides the second, not the third, column.
Comment #4
tim.plunkettAlright, I think I found that bug. Can you try this patch? You'll need to revert the previous one first, and also clear your caches again.
Comment #5
chalee commentedDoes the above patch solve the issue I have. I don't want a field that is set as hidden in the 'Manage display' page to appear as column in the table. Currently the field values are not showing but the column still appears showing the header label.
Comment #6
tim.plunkett@chalee, did you try it? It does fix it.
Comment #7
justmagicmaria commentedFabulous, Tim! Yes, the latest patch worked beautifully.
Comment #8
chalee commented@tim.plunkett, Yes I tried the patch but it's not working for me. The empty column is still there showing the header label.
Comment #9
justmagicmaria commented@chalee, did you clear you caches?
Comment #10
chalee commentedYes, I cleared cache several times.
Comment #11
tim.plunketthttp://drupalcode.org/project/field_collection_table.git/commit/20a14f1
Comment #12
chalee commentedPatch works thanks