Gustaf,
No I was not aware of this, and now that I have had a look at it I am very excited by the possibilities. Thank you.
I have created an experimental page with a single image on it, but have run into a problem:
Error in includelet 'yui-carousel':
::xotcl::__#0G: unable to dispatch method 'pretty_link'
while executing
"$entry pretty_link -download true"
(procedure "render" line 57)
invoked from within
"next"
(procedure "render" line 5)
::xotcl::__#0E ::xowiki::includelet::decoration=portlet->render
invoked from within
"$includelet render"
The url for the page is:
http://dev.oakmasters.com:8000/xowiki/available_includelets
Is this caused by something I have omitted to do?
I have studied your code and am beginning to 'get it', but I am not yet familiar enough with xotcl to know the kind of problems that create method dispatch issues. Is this a problem with the image object or a more fundamental issue? I have found the method in the links-procs.tcl and I am not really sure where to start troubleshooting to work out why this method fails on the image object.
I should mention that before I added an image object to the page, the empty YUI carousel rendered just fine. As soon as I added a child object of type image (as per the includelet code), the pretty_link method choked.
Also, I am concerned that with a very large number of images on many pages, the files may become difficult to manage since there are no folders in an xowiki admin page. I can add categories to organise the photos for display controlled by a menu, but I am concerned about the admin situation.
In the past I have used photo-album to organise images hierarchically in the admin pages and public viewing, and to use the images arbitrarily in other pages by hyperlinking them within the html. Of course this simply causes the browser to grab the image as a seperate request, whereas the yui-carousel includelet is doing all the work on the server. Is there a way to emulate the hierarchical organisation of the photo-album package in xowiki?
If not, could the yui-carousel be populated from the photo-album? Is it be feasible to enable photo-album content items (images) to be allocated to xowiki page objects as additional child objects, without disrupting their existing object relationships within the photo-album application?
Alternatively, is a lightweight {{adp /photo-album/includelet_viewer.adp {album nnnn} }} a realistic possibility for me as a means of ducking the object-tcl challenge for the time being?
Regards and many thanks
Richard