Hey there,

I want to build a nodecarousel index out of thumbnails.

I've got a CCK field that contains the URL to a thumbnail for each of the nodes that I want to put into a carousel. I think I need to pass this field value, the URL, into whatever function generates the nodecarousel index and add Only local images are allowed. tags around it. Is this correct thinking?

I'm pretty familiar with PHP and HTML, but js is new to me. Could you show me where I should put my CCK field variable in the module file to make this happen? I've been hunting around, looking for something that appeared to be the "title" variable that generates title-based indexes, but I can't seem to find it to even begin experimenting...

Comments

jcfiala’s picture

Huh. Never through of doing it with thumbnails.

Here's what you want to try - I can't be sure if it'll work, but it may. Create your <themename>_nodecarousel_node function override. In it, have something like:

$content .= '

';

Only instead of the $node_words[0], you put in the text of the image tag pointing to your thumbnail. (You can look at the theme_nodecarousel_node in nodecarousel to see the context.)

That *does* work for any words, but I'm not certain if the javascript will work for an image tag. Please let me know how that ends up?

bflora’s picture

I'll take a crack at this when I get a second and let you know how it goes.

ultimateboy’s picture

Status: Active » Closed (fixed)

NC works great with images and imagecache. Follow the advice above.