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.
Thanks for working on this, is there anything I can do to help? Field collections is very important to me, I use it in pretty much every site I build.
Comments
Comment #1
larowlan@jmuzz has been pushing this along
I'm planning on getting back to it in Feb.
I guess when there is something working, testing will be helpful
Comment #2
odegard CreditAttribution: odegard commentedGreat, I'll follow the progress carefully
Edit: Are you doing i conversion or a rewrite? Do you start with the D7 code or implement from scratch?
Comment #3
jmuzz CreditAttribution: jmuzz commentedIt is essentially a rewrite. The Entity API in Drupal 8 is completely different than in Drupal 7. The repository still has field_collection.module there for reference but most of what is working on Drupal 8 currently is in lib and only a few hooks in the .module file are still active.
A very minimal set of features is currently working. You can create a field collection and add fields to it. You can create field collection items on a node using the interface provided by the "links to field collections" formatter. Testing at this point would be unnecessary as there are still enough known issues to keep busy for a while. I want to try to solidify what is there by adding validation, fixing the error messages, and looking at nested field collections.
If you want to help develop on it you could look at adding one of the other formatters ("field collection items" or "fields only") or the embedded edit widget. Also none of the settings forms have been started on yet.
Comment #4
larowlanAt the moment it needs another rewrite after #2005716: Promote EntityType to a domain object
Comment #5
joehudson CreditAttribution: joehudson commentedThanks for your work on this. As you may already know, installation is now broken on the latest dev build of drupal 8. On enabling field collection, I get a 'no current batch' error. then on refresh 'an error has occurred. please try again later'. In the drupal log there are lots of these errors:
"Drupal\Component\Plugin\Exception\PluginNotFoundException: The "field_entity" entity type does not exist. in Drupal\Core\Entity\EntityManager->getDefinition() (line 207 of C:\xampp\htdocs\...\core\lib\Drupal\Core\Entity\EntityManager.php)."
Comment #6
skh CreditAttribution: skh commentedSimilar to OP, I use field_collection on the majority of projects. Certainly willing to help in anyway possible.
Comment #7
jmuzz CreditAttribution: jmuzz commentedIt is semi-functional again.
Comment #8
sachbearbeiter CreditAttribution: sachbearbeiter commentedsame situation: "Field collections is very important to me, I use it in pretty much every site I build."
is there something i can do as a non-developer?
a small bounty maybe?
testing (is there already something to test because one year ago the state of dev was the following: "Testing at this point would be unnecessary as there are still enough known issues to keep busy for a while.")?
thanks and regards sb
Comment #9
jmuzz CreditAttribution: jmuzz commentedI made a couple of updates and it should work with the latest dev of D8 right now. I'd say it is testable, though only basic stuff is working now. Revisions should be getting handled but they haven't been tested much and I haven't looked at multilanguage or migrations yet.