Closed (won't fix)
Project:
Gallery
Version:
5.x-2.x-dev
Component:
Blocks (Image-/Grid-)
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jul 2007 at 16:04 UTC
Updated:
8 Jul 2008 at 19:52 UTC
The grid block only allows up to 5 rows and columns. This seems arbitrary. I have modified my copy (too trivial to be worth diffing) to allow up to 12. 12x1 in a top or bottom block, or 1x12 on the left or right, seems quite plausible. Far more so than 5x5.
Comments
Comment #1
profix898 commentedDo you think we should replace the select box with a textfield (and numerical validation)? Or is it sufficient to keep things simple by increasing the numbers only? What do you think is a reasonable upper count? 15?
Comment #2
sparr commentedI don't think there is any single "good" upper bound. The bounds are a function of thumbnail size (and many other factors). Where I want 1x12 in a sidebar and 12x1 in a footer, someone else using thumbnails half the size to fill the same space might want 2x24. Some people might want more or less than that. A text field with validation seems plausible. A php field would be even nicer, imho; it would be great if I could have the block behave differently depending on context.
Comment #3
confusi0n commentedSorry to resurrect this request, but I'd like to expand on it a little.
Would it not be a better idea to ask how many images to show in the grid, and for the grid to then automatically format itself depending on page/div width? I have a div which I am using for blocks in the centre of my front page, the width of which is dependent on the browser width (and hence resolution). It would be great if each thumbnail would 'wrap' around the width as the div got smaller - creating more rows where necessary.
John
Comment #4
profix898 commentedYou cant alter the output format depending on browser parameters, theming output is server-side and actual rendering is client-side ;) To obtain "auto-wrap" behavior you must use CSS features or some JS magic. The gallery module uses a theme_ function to format the grid block output, what means you can easily override this function in your theme to implement different behavior.
Also, if you need more control over some image/grid block parameters you can create a custom block in Drupal and paste in a few lines to get exactly what you want. Therefore, I consider this request "won't fix".