When I moved our site to Drupal 4.6, I noticed that some gallery-related
functionality in the image module was removed or had been left out in a rewrite.
Most important thing I missed were the 'previous' and 'next' links.
Later on I also noticed image weights were missing.
After researching a bit, I saw some posts saying that the image module is being stripped,
so that it will only facilitate creation and viewing of image nodes. Image gallery functionality
would then go in other modules. So I started searching for a replacement gallery module.
There were several options :
- acidfree
Couldn't get this to work and even if I did, would it have img_assist integration ? - album
Didn't want to move to folksonomy. I like a hierarchical structure of my albums ! - shazamgallery
From the description, it seemed too experimental and didn't contain what I needed. - gallery
I really want my galleries to be based on taxonomy and image nodes. - write a new module
That's what I did.
My first step in building the new module was copy-pasting all "image gallery display stuff"
from the image module to the basicgallery module. Then I made just 1 menu callback so
all requests for basicgallery[/*] "belong to us", implemented the callback and made all
the code work with the new paths. I re-implemented the previous and next links. Actually that
was only reliably possible with the new path scheme, because the image module galleries
use the node view for viewing an image and if the path is node/123, you suddenly
don't know anymore in what (taxonomy-) context you are viewing the image.
There's still a lot to do :
- Clean up the code somewhat, so I don't have to be embarrassed
- Use my own css file instead of the image module's one
- Make more things themeable
- Take access modules into account
f.i. taxonomy_access_by_role - Move/copy some gallery maintenance functionality from the image module
- Re-implement image weights, with arrows to move images up and down ?
Implementing this would imply that the module gets its own table(s) for storing additional image properties. - Bring back the view and edit tabs
I'd like being able to edit the title or body directly from the gallery again. - Probably more ,,,
The current state of affairs still uses image module's functions as much as possible.
Some of them are "internal" ( start with "_" ) and I used them anyway ;-)
A preview of the functionality from the visitor perspective can be viewed here.
Any feedback will be appreciated, more specific questions will follow.
Comments
sounds good
sounds like a good idea. keep posting updates