I use Drupal 4.1.0 rc and the latest image.module from cvs.

The image.module works quite well, I have only one problem. If I promote the image to the front page the whole shebang is displayed, but all I want to see is the teaser.

I did a change in the image module at line 111:
function image_link($type, $node) {to
function image_link($type, $node, $main = 0) {No I can see the teaser, but there are other problems
1. The previous image/next image links are displayed on the front page.
2. If I include a [image:id] in the teaser to get a thumbnail as preview then I have two thumbs for every image in the gallery display.

Argh, all I want is a teaser for my images on the front page, preferable with a thumbnail. Only local images are allowed. Only local images are allowed. Only local images are allowed.
What can I do?

Comments

bjergtrold’s picture

Here is the diff to the cvs image.module:

----- snip -----

111c111
< function image_link($type, $node, $main = 0) {
---
> function image_link($type, $node) {
165c165
<     if ($main==0 && $prev) {
---
>     if ($prev) {
169c169
<     if ($main==0 && $next) {
---
>     if ($next) {
1139c1139
<   $theme->node($node, $main);
---
>   $theme->node($node);

----- snip -----

For now I use my theme to add the thumb to the teaser, but I think this should move into the module. I will have to learn Drupal programming... Only local images are allowed.