Timeline for Can I access node ID of the parent node of a field collection field in field-collection-item--FIELD_NAME.tpl.php
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 22, 2014 at 5:32 | comment | added | user219492 |
Hi tenken, thank you very much for answering my question. It seems though that there is somehow a problem with this line foreach (element_children($vars['element']) as $key) { $fcs[] = array_pop($vars['element'][$key]['entity']['field_collection_item']); . The internal array layout is not like that and hence this returns empty.
|
|
Aug 22, 2014 at 3:44 | history | answered | tenken | CC BY-SA 3.0 |