Forum OpenACS Q&A: Photo-album, improvements to the contrib version
- Rotate photos (ImageMagick's installed anyway, so why not use it for more than just scaling?)
- Selecting which photos can be chosen at random (setting photos to Featured -- and possibly having both options implemented by adding an optional "only_select_from_featured_photos" parameter to the random script).
I use this feature intensively on refresh.dk and my impression is that others having random photos on their personal OpenACS pages (such as Lars) do this as well.
- Enabling comment on both albums and photos (just adding comment support and the two parameters enable_album_comments_p and enable_photo_comments_p to the package).
Oh yeah, as long as I'm raving about the featured_p functionality, being able to send a max_number (defaulting to 1) to the random script and sending this onto the SQL query as the limit parameter may be an idea. The photo-random.adp would simply use a <multiple> tag and you'd be able to show more than one random photo at a time 😊.
Again, have a peek at refresh.dk.
The other ideas sound like good ones.
(I'm just kidding - unfortunately!)
The maxnumber thing is certainly a good idea. It might need a bit of extra thought, though, since showing more than one photo at a time would require some layout tweaking. Some might want the pictures side by side, others beneath each other... Now when we only show one picture, we don't have to think about it since we only return the photo and the link surrounding it.
Absolutely. I read your announcement and that you're going to implement it using file-storage. Isn't most of the WebDAV functionality going to be in content repository, thus making integrating DAV with a package using CR a twist?