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:
Manage Display
rendered table

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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

OnkelTem’s picture

Assigned: Unassigned » OnkelTem
Category: feature » bug

This is definitely a bug. Let's see...

OnkelTem’s picture

Assigned: OnkelTem » Unassigned

Ok. 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 from field_attach_view. So injecting any DS-related code into into field_collection_table_field_formatter_view looks premature and hacky for me, not to say you wouldn't do much anyway since field_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.

jason.fisher’s picture

Seems like this would be straightforward with CSS?

WorldFallz’s picture

Status: Active » Closed (duplicate)
attisan’s picture

attisan’s picture

Issue summary: View changes

fixed bad link