Is there any way to hide the field labels? Because they’re always visible in the first row.
For example if you go to Field_collection >> Manage display and set all of your field labels to "hidden" it has no effect on the rendered table.
For example I need to hide the “Name” and “Value” labels from a table, so it only shows the data:
I tried commenting out parts of theme.inc but I couldn’t figure it out, without breaking my site.
This module is fantastic! but I really need a way to do this. I think it would be a great feature to add someday, maybe via a “Hide header labels” toggle?
This guy had the same problem: http://drupal.org/node/1401492
I believe these may also be related to the underlying issue: http://drupal.org/node/1426806 http://drupal.org/node/1441668#comment-5826560
Comment | File | Size | Author |
---|---|---|---|
Rendered Table.PNG | 10.02 KB | EntrepreneurNet | |
FieldCollection Manage Display.PNG | 11.97 KB | EntrepreneurNet |
Comments
Comment #1
OnkelTem CreditAttribution: OnkelTem commentedThis is definitely a bug. Let's see...
Comment #2
OnkelTem CreditAttribution: OnkelTem commentedOk. While hiding labels is not a problem itself, it will not work consistently with Display Suite, integration with which I was considering as more general task. After reviewing FC Table code and trying to make it work with Display Suite I stopped my attempts since I saw no clean way to integrate them.
This module builds its table in proper
field_collection_table_field_formatter_view
function which is called *BEFORE*ds_field_attach_view_alter
fromfield_attach_view
. So injecting any DS-related code intointo field_collection_table_field_formatter_view
looks premature and hacky for me, not to say you wouldn't do much anyway sincefield_collection_table_field_formatter_view
gets field information from core, which is not enough to get DS to work.Similarly altering FC Table table when it's build is not an option too, since DS may feed completely different fields so nothing from FC Table's fomatter output is really needed. Then what? The only option is to create alternative FC Table formatter for DS. But this task looks too complex to have sense, because we can instead use a view to output what we need and how we need. Alternatively there is nice http://drupal.org/project/field_collection_views module, which allows you to create field formatter based on a view.
Conclusion
Use FC Table for editing - it's really nice, and views or field_collection_views + views for printing fields.
Comment #3
jason.fisher CreditAttribution: jason.fisher commentedSeems like this would be straightforward with CSS?
Comment #4
WorldFallz CreditAttribution: WorldFallz commentedbelieve this is a dupe of #1426806: Not using view modes correctly (& header showing when set to hidden)
Comment #5
attisancross linking http://drupal.org/node/2004742
Comment #5.0
attisanfixed bad link