Loop should traverse only existing images

Amir Simantov - October 19, 2009 - 00:20
Project:Views Slideshow
Version:6.x-2.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Following the disappearing is one of these:
1. The first image is shown again after a break of a few seconds;
2. No images are shown any more (disappearing until a refresh).

Any help will be appreciated, thanks.

#1

redndahead - October 19, 2009 - 17:44

I haven't ran into this so I'll need to know how things are configured. What style options etc.

#2

Amir Simantov - October 27, 2009 - 12:22

Thanks for replying.

Here is the configuration, while it may be seen in: http://kehilotsharot.org.il/node/492/edit

Thanks for your help.

Defaults: Style options
Grouping field: None
List type: Ordered list
Slideshow mode: SingleFrame
SingleFrame rotator options
Timer delay: 3000
Initial slide delay offset: 0
Speed: 700
Random: False
Pause: Yes
Controls: None
Pager: None
Pager Type: Numbered
Image Counter: None
Effect: fade
Sync: Yes
Advanced Options: (Empty)

#3

Amir Simantov - November 1, 2009 - 10:37
Title:Slideshow View disappears altogether after showing last image» Loop should traverse only existing images
Category:support request» bug report

Regarding problem 1, I have found when that it when it happens: if there are 3 pics and not 4 where the maximum number allowed of images to be uploaded is 4, then the "gap" or "break" after the last image is actually trying to show the 4th image after the 3rd! Now, as there is no image, you see nothing.

Therefore, it looks like a bug - the loop should be on the actual images exist (uploaded) and not on the number of images which are allowed to be uploaded.

I am changing the category of this to 'bug report' and the name of the issue.

P.S. Problem no. 2 does not occur currently.

#4

redndahead - November 1, 2009 - 15:45

Are you uploading the images all to the same node?

This module rotates through multiple nodes. Not sure how it's rotating through multiple images on the same node.

#5

Amir Simantov - November 11, 2009 - 13:49

Thanks for the explanation redndahead - I indeed use it for sliding multiple images in the same view.

I was investigating it a bit and it seems that if I could remove empty entries from the array, it will fix it for me. In views-slideshow.tpl.php I tries to remove "empty" rows but they are not indeed empty. How can I investigate whether a row in this context has been filled? If I check with empty() any row it returns false.

Any idea?

Thanks!

#6

redndahead - November 11, 2009 - 14:56

Maybe you can use filters in your view to filter out the ones who's fields that you need are empty?

#7

Amir Simantov - November 12, 2009 - 12:05

Solved! Thanks redndahead - your idea was simple and worked very well.

Thank you for your continuous help!

Amir

#8

redndahead - November 12, 2009 - 18:11
Status:active» fixed

Glad you got it.

#9

System Message - November 26, 2009 - 18:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.