Is there a way to allow the user to set the layout dimension of the thumbnails on a per-album or entire-site basis? Not the dimension of each thumbnail, but the number of thumbnails across and down in the layout?
If not, could this be considered as a new feature?
It would be very useful since not all users have the same size screens. Someone viewing at 1280x1024 would be happier with more thumbnails per page than an 800x600. Letting the viewer select it would empower them to set it based upon their screen and wishes.
Thanks
Posts: 32509
you can set for each album the number of columns and rows... if the user has "edit album" permissions, he should be able to change this.
edit album -> choose the right tab.
Posts: 16504
I see what sremick is talking about. Allow a guest visitor to change the look of an album page for their session only. Much like you may have seen on may sites were you can change the number of returned results from 10 to 20 to 50, etc.
So it really wouldn't be on an album by album basis, but on a user's preference. Maybe taking it one step further saving this in a registered user's preferences so the next time they logged in they got the look they choose before. Say you require users to register to view anything more than thumbs, but they still can't create albums or edit existing ones. But they could still have the option of changing the number of rows and columns displayed on a page.
I don't know if this is easy or not with the way Gallery is setup, but it would be kind of cool.
Now, I'm not suggesting that these users could each have their own custom theme applied to browse your albums, but how hard would that be?
Posts: 8601
You can write a custom layout to do these things....
Posts: 16504
Makes sense. I can see doing a custom layout for guests as their preferences would just be session cookies. However, could you do something similar to save preferences for registered users so their preferences were saved and restored when they logged back in? The only reason I ask that is because I'm not sure where one would start to store that information in the DB.
Posts: 8601
in the php code for a layout you can do something like this:
$ret = $this->setParameter('userPrefRows', $userRows, $gallery->getActiveUserId());
Posts: 47
Yeah, I wasn't thinking about permitting a user to edit an album. I was envisioning pulldowns on the main page while you're viewing an album. Like this:
Posts: 16504
So then everything is saved into an existing portion of the databased for user preferences. Very cool. It's great to know this stuff has been laid out with so much thinking ahead of time that making G2 do anything we want won't be a ton of work and pretty much just a "plug-in".
Thanks guys, keep up the great work!
Posts: 314
nivekiam, I was looking to do that for almost a year now. This is one of the biggest things that my album owners are asking for... As soon as big reengineering of layouts is over (and I will run out of my final excuse ) I will try to do something like this. Unfortunately, even if I succeed - the layout will look ugly; so I was hoping that somebody else would do it first!