Show node field as a carousel using jCarousel module programmatically? I have a content type with a fiel called: fotos-carousel (image type) which I want to show as a carousel. I can't use views to do this.

I installed the jcarousel module and read the documentation to add a carousel programmatically. 

Then I create a tpl file to change the output of this field: field--field-fotos-carousel.tpl.php

and add this code:

&lt;div class="&lt;?php print $classes; ?&gt; clearfix"&lt;?php print $attributes; ?&gt;&gt;
&lt;?php foreach ($items as $delta =&gt; $item) : ?&gt;
  &lt;?php 
    $items_carousel[]='&lt;img src="sites/default/files/'.$item['#item']['filename'].'" width="75" height="75" alt="" /&gt;';
  ?&gt;
&lt;?php endforeach; ?&gt;
&lt;?php
            $options = array ('visible' =&gt; 1,'scroll' =&gt; 1,);
            print theme('jcarousel', array('items' =&gt; $items_carousel, 'options' =&gt; $options));
            jcarousel_add('.jcarousel-id-1', array('vertical' =&gt; TRUE));
        ?&gt;




The output (ul, li, images) is fine but the carousel is not loaded (jquery)

Anyone has done this before? What am I missing?
Have you try with this module: http://drupal.org/project/field_slideshow It will help you to build a carousel with the content of a field.

As field slideshow is not the best options, because you need field collection.

Another option is this other.

Use a normal image field.
Build a block view with the images from the node.
With Display suit, you can choose what fields you can show or hidden, you can hidden the imagefield. And also use Display Suit (admin/structure/ds/fields) to become the views block as a field for the content type. 

The last step is to enable the new field.