Multi value embedded field_collection:
http://awesomescreenshot.com/041mk3w58 (outdated link)
Single value embedded field_collection:
http://awesomescreenshot.com/0d3mk6j64 (outdated link)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mattsmith3’s picture

same issue here

mattsmith3’s picture

ok.. did some testing. When first setting up a field collection with a number of values set to 1, the labels were printing in the html, but placed behind the actual fields themselves. After setting field collection to tables (http://drupal.org/project/field_collection_table), viewing the node/add form again, then disabling tables the labels showed up. After this.. problem of missing labels went away completely.

emilekott’s picture

We have the same issue.

Singe cardinality field collections on the node/edit form are not in a table, and the label is missing so it is unclear that they are in a collection.

This issue does not occur with multi valued or unlimited cardinality collections.

Have tried the field_collection_table suggestion above and no fix.

Have also tried 7.x-1.0-beta2 and dev - no fix presently.

drikc’s picture

Status: Active » Needs review
FileSize
585 bytes

It appear that the field miss its '#type' parameter when the cardinality is set to 1. So the attached patch propose to add one in this case.

tim.plunkett’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

knalstaaf’s picture

Title: Single value embedded Field Collections do not display field label » Single value Field Collections do not display field label
Priority: Normal » Major
Issue summary: View changes
Status: Closed (fixed) » Active
FileSize
6.87 KB

This patch isn't working anymore in the latest dev ( 2014-Apr-16).

The labels are missing on my edit page.

EDIT: the label has the class "element-invisible": <label class="element-invisible" (...)>
That's why it's not shown.

I have no idea why this is, and how I can disable this behaviour.

knalstaaf’s picture

Priority: Major » Normal

This only occurs when the widget type of the Field collection-field (in the content type) is set to table. When it's set to embedded the labels appear just fine.

Is there a specific reason for this?

  • tim.plunkett committed 3d82aba on 8.x-1.x
    Issue #1314796 by drikc: Added label for single value embedded Field...
jmuzz’s picture

Status: Active » Closed (fixed)

The field collection module does not supply a table widget. Try filing an issue in the module that supplies the table widget.

If this issue can be reproduced with only the field collections module then feel free to reopen with steps to reproduce the problem.