Timeline for get node id of field collection
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 10, 2013 at 23:52 | comment | added | thirdender |
Yes, the Field API works for fields on Field Collection entities as well. field_get_items('field_collection_item', $field_collection, 'field_FIELD_NAME'); will return an array of values for a named field on that field collection entity. You can also use the Entity metadata wrappers (considered the new, slick way to do this :-p). Just specify that you're loading a wrapper for a field_collection_item instead of a node .
|
|
Jul 1, 2013 at 15:21 | comment | added | Bernard Nandwa | Is it possible to retrieve the data in a particular field used in Field Collection? A bit offside I know but am just curious. | |
Feb 19, 2013 at 19:51 | history | answered | Chris Muench | CC BY-SA 3.0 |