Download & Extend

field-collection-item.tpl.php template doesn't seem to work

Project:Field collection
Version:7.x-1.0-beta5
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:active

Issue Summary

Not sure if it is just me but the field-collection-item.tpl.php template doesn't seem to be working, along with its template suggestions.

I have a field collection called field_featured_images and according to the $variables array there are theme hook suggestions such as field_collection_item__field_featured_images.

I can successfully use template_preprocess_field_collection_item__field_featured_images() but I can't seem to use an equivalent template file.

I have tried field-collection-item--field-featured-images.tpl.php & field-collection-item--field_featured_images.tpl.php but they don't seem to work.
I have tried with and without a field-collection-item.tpl.php in the same directory and that doesn't seem to matter.

Comments

#1

Title:field-collection-item.tpl.php template suggestions don't seem to work» field-collection-item.tpl.php template doesn't seem to work
Priority:normal» major

Actually, the field-collection-item.tpl.php doesn't seem to work at all.

I have a field collection field set to use the "Field collection items" field formatter, and field-collection-item.tpl.php is never used.

Even if I directly modify the one in the field_collection module it doesnt' show the change.

It is hitting theme_field_collection_view but not field-collection-item.tpl.php

nobody click here