Teaser Issues

GC_Chi - August 20, 2007 - 15:43
Project:Slideshow
Version:4.7.x-0.9
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

There are couple of issues pertaining to the teasers displayed for slideshow nodes:

1) There is no teaser option (I removed the "$node->teaser = $output line in order to restore the teaser).

2) If the slideshow node is displayed on homepage, the "next/previous" links do not change the image if javascript version is not enabled. It instead changes to the next page.

3) The javascript code gets loaded onto the homepage even though I restored the teaser. What changes to the code do I have to make to get the javascript to not load only on the homepage.

#1

kkaefer - August 20, 2007 - 16:15
Status:active» won't fix

Sorry, but I won't fix issues with the 4.7 version. If you can write a patch, post it here and I'll review and probably commit it.

#2

GC_Chi - August 22, 2007 - 17:00

I'm not a programmer. It would be greatly appreciated if you could tell me what part of the code I needed to modify to prevent the javascript stuff from loading on the homepage if its a quick fix. Otherwise, I understand that this version is no longer being maintained. Thank you for responding.

#3

kkaefer - August 22, 2007 - 17:07

Delete the following line from your module:
      $node->teaser = $output; // yes, overwriting as the images are the main content

#4

GC_Chi - August 25, 2007 - 23:09

Removing that line restores the teaser, but doesn't prevent unnecessary javascript from being loaded into the HTML header.

#5

GC_Chi - August 26, 2007 - 19:24

I was referring to this code that gets loaded into the header:

<script defer="defer" type="text/javascript">
/*<![CDATA[*/
var slideshow = { "1": { "src": "http://www.mysite.com/files/image-01.jpg", "title": "Image 1" }, "2": { "src": "www.mysite.com/files/image", "title": "Image 2" }, "3": { "src": "www.mysite.com/files/image", "title": "Image 3" }, "current": 1, "total": 3 };
/*]]>*/
</script>

 
 

Drupal is a registered trademark of Dries Buytaert.