I can't seem to modify how to display slideshows in my front page. I would like that only the text was shown in the main page and then the slideshow when the link is pressed, but the slideshow is always present in the front page even if I write

.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dquakenbush’s picture

I had the same problem -- I wanted to see the slideshow in the full node, but not in the teaser.
I modified slideshow.module as follows... haven't tested extensively, so it may be buggy.... YMMV.

I would roll this up as a patch, but I don't know how :-(

On line 433 I added the teaser variable that he passes from another function, but doesn't pick up.

function slideshow_view(&$node, $teaser) {

Then on line 440 I add $teaser to the list of things that will cause the slideshow to not render.

  if (empty($node->files) || $location == SLIDESHOW_LOCATION_NONE || $teaser) return;

Hope this helps someone.

johnnybegood’s picture

Hi dquakenbush,

Your solution worked fine for me. It would be great if that could be set from a tick box on the settings. I have found this module much easier than any other for average users to add their images to the nodes they create - all in one place.

Thanks!

Farreres’s picture

Can someone make a patch out of these comments?

Sivert Almvik’s picture

Excellent!

Patch did the trick. Slideshow stays out of teaser, but appears in full node.

Thanks!

snvs’s picture

Hi, what file do I have to change?
Thanks
snvs

dquakenbush’s picture

slideshow.module

Farreres’s picture

Please please please please please, generate an official version including the patch please.

jshuster@drupal.org’s picture

It's been a long time since anyone touched this issue, but I needed to make this change -- so here's a patch. This includes a global setting to suppress display on all teasers.

kkaefer’s picture

Status: Active » Fixed

Committed jshuster's patch. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.