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 |
Jump to:
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
I haven't ran into this so I'll need to know how things are configured. What style options etc.
#2
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
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
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
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
Maybe you can use filters in your view to filter out the ones who's fields that you need are empty?
#7
Solved! Thanks redndahead - your idea was simple and worked very well.
Thank you for your continuous help!
Amir
#8
Glad you got it.
#9
Automatically closed -- issue fixed for 2 weeks with no activity.