Forum OpenACS Development: Random photo widget committed
<include src="/packages/photo-album/www/random-photo" url="/photo-album-path/">
You can also use package_id instead of url if you please, or leave them both away. In the latter case the photo will be lotted from all photos in the system.
I also implemented size switch, with which you can specify whether a thumbnail (thumb) or a normal size image (viewer) is displayed. Thumb is the default.
Any feedback is welcome. Also if you'd like to port it to Oracle, please speak out.
Is it possible to include random pictures but only from a folder or album within a subsite?
<include src="/packages/photo-album/www/random-photo" url="/photos/?folder_id=1153">
<include src="/packages/photo-album/www/random-photo" url="/photos/album?album_id=1156">
this doesn work obviously but is the result I looking for.
this added to http://www.thecodemill.biz/publications/blog/one-entry?entry%5fid=9879 is great to include random pictures in relation with the ETP subject.
step-by-step we will have openacs working for endusers too!!
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 (?)...
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 ;)).