I'm displaying images in a block scrolling from right to left from a gallery. Image cycle isn't cycling all images from a gallery I have set up. Only 6 of 48 images are cycling. Images do not appear to be being pulled from all pages of the gallery.
Code I'm using in the block is:
echo image_cycle_show(8);
Thanks in advance for any help to have image cycle rotate all images in the gallery.
Comments
Comment #1
tripper54 commentedI'm having the same problem. 68 images in the gallery, but only the first six are showing in the slideshow.
Comment #2
charly57 commentedI have the same problem. Many images in my gallery, but only 6 are showing in the slideshow. These 6 images are the first 6 that are displayed in the first screen of my gallery (admin/gallery/mygallery). It seems linked ???
Comment #3
charly57 commentedHi all,
I have found the solution to fix this issue.
You just have to change the number of images per page for gallery. By default the value is 6
To change this value , you go in :
./admin/settings/image/image_gallery
Hope this help you.
Comment #4
onca commentedCharly57 - Nice forensics. Here is the message I get when taking your suggestion:
Images
Image galleries are being made with the Views module: To change the way galleries are displayed, edit the image_gallery view on the Views administration page.
I jump to Views Administration, select image_gallery, and then see that my default items per page is 12 - even though I only see a particular six rotate through in a given time sequence. A different pod of 6 items will rotate, but I see no correlation between the settings and the images that resolve. Very strange. My image_gallery appears to be dictated by the Views, whereas you are able to make changes at the image_gallery level. Thanks, onca.
Comment #5
onca commentedFollow-up. I set the number of images to be displayed in my gallery from 12 to unlimited. Still, the rotation is of the same six images. Can someone please weigh in on this?
Thanks,
onca
Comment #6
onca commentedBam! I found the fix. After changing the gallery image number to unlimited, the rotator was still swinging only 6 images. After some additional digging, I went into the jquery image_cycle.module. Default # images per page is set to six
$result = pager_query(db_rewrite_sql($query), variable_get('image_images_per_page', 6), 0, db_rewrite_sql($count_query), $args);
while ($node = db_fetch_object($result)) {
$images[] = node_load(array('nid' => $node->nid));
I have 47 logos I want to rotate and so made the change from 6 to 47 and works perfectly.
$result = pager_query(db_rewrite_sql($query), variable_get('image_images_per_page', 47), 0, db_rewrite_sql($count_query), $args);
while ($node = db_fetch_object($result)) {
$images[] = node_load(array('nid' => $node->nid));
Thanks for your help.
onca