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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | image.module.gallerysize.patch | 1.8 KB | Wes Cowley |
Comments
Comment #1
pegmonkey commentedI'd like to see this feature as well.
Comment #2
Cvbge commented+1 from me ;)
Comment #3
Wes Cowley commentedHere 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.
Comment #4
Cvbge commentedI'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?
Comment #5
Wes Cowley commentedI'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.
Comment #6
battochir commentedHello 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
Comment #7
walkah commentedapplied to CVS (both 4.6 and HEAD).
thanks for the patch!
Comment #8
(not verified) commented