Forum OpenACS Development: Re: Random photo widget committed

Posted by Alfred Werner on
I was thinking of adding a slide show / album to ecommerce, since sometimes one photo is not enough.

Based on what you know of photo_album would it make sense to try to hook it to that API or reproduce the functionality of a subset?

The key difference I think would be it probably would be best to have the album or slideshow appear in a popup window (?)...

Thoughts welcome!

Posted by Malte Sussdorff on
I would add this to the photo-album package, which allows you to call /packages/photo-album/www/slideshow via include that takes album_id as an argument and popup_p, random_order_p, refresh_rate.

If popup_p is true, a new window would open with the pictures of the album_id shown in random_order, refreshed every regresh_rate of seconds.

If popup_p is false, include a back and forth button at the bottom of the picture, that will (on_submit) go one page forward or backward, while keeping all the values of the surrounding page. Not even sure if this is possible, maybe you can do some java script magic with embeded elements, but it might stress the capabilities of HTML.

Alternatively, just display all the pictures below each other (if popup_p is false, that is ;)).