Closed (fixed)
Project:
Nodecarousel
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 May 2008 at 04:04 UTC
Updated:
5 Nov 2008 at 22:08 UTC
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
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
Comment #1
jcfiala commentedHuh. 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?
Comment #2
bflora commentedI'll take a crack at this when I get a second and let you know how it goes.
Comment #3
ultimateboy commentedNC works great with images and imagecache. Follow the advice above.