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 can get the field collection in views.
I can get the complete value, but not the seperate values in the field collection, not by using relations or tokens.
The fact the whole field collection is loaded, it means its loaded and the fields are fetched, it would be nice to get the separate field in the fields in the field collection.
the structure is like this
user(
----location
----with field collection with (
---- ----field collection (with location field, text field,...)
---- ----txt field)
)
Comments
Comment #1
jmuzz CreditAttribution: jmuzz commentedTry the entity token module for accessing the inner fields of field collection items.
If you have the ID of a field collection item you can use entity_load or field_collection_item_load to get the field collection item entity with its field data loaded.