Only displays 1st 10 images in gallery

mshepherd - August 31, 2008 - 13:19
Project:Simple Gallery
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:ComputerWolf
Status:closed
Description

When the gallery contains more than 10 images, only the 1st 10 are displayed, and there is no pager.
It seems that the number 10 comes from $feed_default_items, maybe a variable in the feed aggregator?? Not sure.
Anyway, that's not configurable specifically for any instance - that's my understanding anyway.
Have a look at this thread:
http://drupal.org/node/25801

In my copy of this module, I've changed the following line in

function simplegallery_sub
...
$children = taxonomy_select_nodes($tidArray, NULL, NULL, <em>TRUE</em>, 'n.created ASC');

It now displays all the images in the gallery:
http://mphotos.net/gallery/3

Many Thanks,
Matt

#1

mshepherd - September 3, 2008 - 18:53

The link in my previous post will no longer show the full gallery. I updated to version 1.2, hoping this patch had been included (oops!), and I've not bothered making the change again. Sorry

#2

michaelmix - September 17, 2008 - 10:00
Version:6.x-1.1» 6.x-1.2

I have a small problem: I did as you said, but the result remained the same. I see only 10 images. :(

What could I do wrong?

#3

mshepherd - September 17, 2008 - 18:38

There's 2 instances of the command - in simplegallery_sub and (from memory) simplegallery_all. Make sure you change the instance in the _sub function and don't include the html tags in the SQL!! They're the only 2 things I can think of off-hand, that might make it not work.
Matt

#4

ComputerWolf - September 23, 2008 - 22:08
Assigned to:Anonymous» ComputerWolf
Status:needs review» fixed

This issue has been fixed in 6.x-1.3. The function taxonomy_select_nodes() had a limitation where it would always limit the number of images displayed to the amount of nodes you have set to be on a page, or depends on using a pager. I have taken part of the code from this function and modified it so all images in an album are now correctly displayed. Please upgrade to the new version to fix the bug.

#5

Anonymous (not verified) - October 7, 2008 - 22:13
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.