Closed (duplicate)
Project:
Nodecarousel
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2008 at 18:04 UTC
Updated:
5 Nov 2008 at 23:18 UTC
Hello,
I've got a working setup of nodecarousel, but have a few questions. My first question is, with my carousel, the list appears below the content. (i'm pulling the imagecache image from the node, and displaying the title along with the teaser). I've tried setting a negative margin-top to the list, but it ends up hiding behind the image. I've also tried setting a higher z-index for the list, but no matter what I do it hides behind there. Is there a way to display that list over the top of the image?
Here's what I have in my template.php:
function deco_nodecarousel_node($node, $name='') {
$content = '<div class="node-carousel-item">';
$image_node = node_load($node->iid);
$content .= '<div class="carousel-image">'. theme('imagecache', 'featured', $node->field_image[0]['filepath']) .'</div>';
$content .= '<div class="hidden nid">'. $node->nid .'</div>';
$content .= '<div class="teaser"><div class="featured-title">'.l($node->title, 'node/' .$node->nid) .'</div><div class="node-carousel-index">'. $node->teaser .' <div id="read-more"> '.l('[Read More]', 'node/'. $node->nid).' </div></div></div>';
$content .= '<div class="corners" id="c_left_top"></div>';
$content .= '<div class="corners" id="c_right_top" style="left: 636px;"></div>';
$content .= '<div class="corners" id="c_left_bottom" style="top: 226px;"></div>';
$content .= '<div class="corners" id="c_right_bottom" style="top: 226px; left: 636px;"></div>';
$content .= '</div>';
return $content;
}
Comments
Comment #1
jessicakoh commentedhttp://drupal.org/node/264326#comment-877599
Try this.
Comment #2
ultimateboy commented