In the previous version of the image module, you could change the number of thumbnails displayed on a gallery page.
In 4.6.0, this has been hard-coded to 6 in the two calls to pager functions in image.module. This should be a user-controllable variable.

CommentFileSizeAuthor
#3 image.module.gallerysize.patch1.8 KBWes Cowley

Comments

pegmonkey’s picture

I'd like to see this feature as well.

Cvbge’s picture

+1 from me ;)

Wes Cowley’s picture

StatusFileSize
new1.8 KB

Here is a patch to add the number of images per gallery page to the Administer -> Settings -> Image options page. The default is still 6. Here's an example in action.

Use it as you like.

Cvbge’s picture

I've used it and it works nice! :)

I have only one problem - images and to close and date and image name/desctiption overlap and it looks very bad :( You don't have such problem, maybe it's template/css thing?

Wes Cowley’s picture

I'm guessing you can fix that with CSS. I took another approach when I first set up my gallery and commented out the lines that produce author and date on the gallery page because I didn't want them there.

battochir’s picture

Hello Wes,
Thanks for your patch. It works very well and replaces some missed functionality that was in image.module 4.5. A problem I have been having is image spacing. If I have three rows of images, 5 images per row, the columns are not stacked upon one another neatly. In other words, image #2 in the second column does not appear under image #2 in the first column unless the photos are EXACTLY the same size. All images align from the left, so rows are neat, but columns are not. I have been to your site and you do not have this problem. I too, have commented out date and author information. This is a problem with thumb size. I assumed you used css. May I ask, what did you do to have straight columns of images as well as rows, with images neatly centered and stacked upon one another? Thanks again for the patch.

Wim

walkah’s picture

applied to CVS (both 4.6 and HEAD).

thanks for the patch!

Anonymous’s picture