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.
I needed to display only the first Field Collection in a multi-field in a View. The References module Views integration already supports that functionality, so I reused it's handler. Copy/paste, then minor edits, and done. Now only one result appears.
Comment | File | Size | Author |
---|---|---|---|
#2 | field_collection-views_relationship_delta-1332452-2.patch | 3.38 KB | 13rac1 |
field_collection-views_relationship_delta.patch | 3.94 KB | 13rac1 | |
Comments
Comment #2
13rac1 CreditAttribution: 13rac1 commentedChanged from a git format-patch to a git diff and updated for current dev. Probably needs tests.
Comment #3
13rac1 CreditAttribution: 13rac1 commentedComment #4
13rac1 CreditAttribution: 13rac1 commentedDupe of #1208346: Implement a custom views_handler_relationship to provide a delta selector. Patch added there.