As far as I know, there is not yet another Drupal module available that attempts to optimize such a gallery for mobile devices.
This module is meant to be used in conjunction with a mobile optimized theme to provide a simple interface with a grid of square thumbnails. When a thumbnail is clicked/touched the intended behavior is for the screen to go black and the user will see the larger version of the selected image along with navigation buttons and possibly a caption.
To see this module in use, go to http://m.blkipper.com/entry/bhutan
This module contains two submodules that take slightly different approaches to generating nearly the same results. The 'Simple' submodule requires users to declare an image field and two imagecache presets. The 'Semantic Views' submodule has a dedicated thumbnail field. Other fields will appear in the area intended for the full image. Both submodules also have the option for a separate caption field.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | mobilegallery.zip | 221.33 KB | stevector |
Comments
Comment #1
stevectorHere is the module.
Comment #2
stevectorChanging status to "needs review."
Comment #3
avpadernoComment #4
dave reidAssigning to myself to review
Comment #5
dave reidOk so getting back on this. Reviewing the module it looks very well thought-out and well-documented. That is a huge +1 for me. My only concern is there is a lot of direct variable output that could possibly be vulnerable to XSS if left un-sanitized. I haven't verified that it is in fact vulnerable, but all the direct output of variables in the theme functions caused a red flag for me.
mobilegallery.theme.inc:
Plus you can use url() and l() to generate links to anchors, so that should probably be used since we would also want to translate 'Next' and 'Prev', but that's not a show-stopper.
So the only thing blocking this is a verification that inputting
<script>alert('XSS!');</script>in your views in all possible places won't cause any popups when viewing the gallery views.Comment #6
avpadernoPlease read all the following and the links provided as this is very important information about your CVS Application.
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:Migrating from CVS Applications to (Git) Full Project Applications.