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.
Multi value embedded field_collection:
http://awesomescreenshot.com/041mk3w58 (outdated link)
Single value embedded field_collection:
http://awesomescreenshot.com/0d3mk6j64 (outdated link)
Comment | File | Size | Author |
---|---|---|---|
#7 | Schermafbeelding 2014-05-20 om 17.24.04.png | 6.87 KB | knalstaaf |
#4 | issue-1314796.patch | 585 bytes | drikc |
Comments
Comment #1
mattsmith3 CreditAttribution: mattsmith3 commentedsame issue here
Comment #2
mattsmith3 CreditAttribution: mattsmith3 commentedok.. 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.
Comment #3
emilekott CreditAttribution: emilekott commentedWe 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.
Comment #4
drikc CreditAttribution: drikc commentedIt 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.
Comment #5
tim.plunkettThat did the trick! Thanks @drikc!
http://drupalcode.org/project/field_collection.git/commit/3d82aba
Comment #7
knalstaaf CreditAttribution: knalstaaf commentedThis 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.
Comment #8
knalstaaf CreditAttribution: knalstaaf commentedThis 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?
Comment #10
jmuzz CreditAttribution: jmuzz commentedThe 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.