Overriding Field Collection output I have a content type named: lectures

In this content type I have a field collection field named: field_course_video_slide_sync

This field collection consists of 3 fields: field_start_slide_sec, field_slide_title and field_slide_number

What I'm trying to achieve is to rewrite them into this:

&lt;ul&gt;
 &lt;li begin="field_start_slide_sec"&gt;&lt;a href="#field_slide_number"&gt;field_slide_title&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


I've tried tpl.php, preprocess_node, field_get_items and views but nothing seems to work. I can't figure out what I'm missing.
Please override field-collection-item.tpl.php file present in the Field Collection module directory. You can put your code in that. Just simply copy it to your theme folder, and place the code inside it.