Firstly this module is great... so easy and functional!!!

I have it set up and would like assistance in doing two things. perhaps I am asking something easy but I just can't see it yet:

1. Display content item Title for each item showing in Content Glider

2. Have the content displayed in the Glider be the content item teaser with associated preset 'teaser_thumbnail' Imagecache image.

Thanks heaps in advance...

Comments

verta’s picture

subscribing to this issue - great suggestion!

jenyum’s picture

I don't have a solution to your imagecache issue (I'd love to see that, too) but I did manage to get a title in there, add some classes for styling, and a read more link.

Here's what I came up with, starting with line 252 in content_glider.module:


$output_body .= '<div class="glidecontent">';
					if ($content_glider_link) {
					  $output_body .= "<div class='glider_title'><h2><a href='".url("node/$glider_nid")."'>".$data->title ."</a></h2></div>";
					  $output_body .= "<div class='glider_teaser'><a href='".url("node/$glider_nid")."'>".$data->teaser ."</a></div>";
					  $output_body .= "<br /><a href='".url("node/$glider_nid")."'>read more</a></div>";
					} else {
					  $output_body .= $data->teaser;
					}
			    $output_body .= '</div>';
			  }

drupalnesia’s picture

Version: 6.x-1.7 » 6.x-1.8

Please use CG 6.x-1.8, in this version I use Drupal node_load() see:

257  $node_glider = node_load($data->nid);

So, you can easier add the CCK to the output, some thing like this:
$node_glider->field_cck_name[0][value]