This page will walk you through the process of adding the Lightbox-enabled version of the Image Gallery tool to your instance of Sakai. These instructions assume that you are familiar with Sakai tool development in general, and that you have a working Sakai installation into which you can deploy the Image Gallery Tool. (For more general information about the Lightbox API, see Lightbox API.)
Check out the Fluid Lightbox component from https://source.fluidproject.org/svn/fluid/components/trunk into a local folder. The rest of these instructions assume you used a folder named
The Lightbox component includes automated jqUnit tests
NOTE: These tests work in:
You can also view the Lightbox component in your browser by viewing it from your local file system.
Lightbox.htmlfile in your browser. i.e.
Go to the
fluid-components directory created Step 1 above and install the Lightbox component using
This will place a copy of the fluid-components war file in your local maven repository.
Check out the Fluid version of the Image Gallery Tool from https://source.sakaiproject.org/contrib/ucb/image-gallery/trunk/ into a folder called
gallery in your Sakai source hierarchy. The rest of these instructions assume you used a folder called
svn co https://source.sakaiproject.org/contrib/ucb/image-gallery/trunk/gallery
If your instance of Sakai is currently running, shut it down.
Go to the
gallery directory and deploy the Image Gallery Tool using
mvn -Dmaven.tomcat.home=$CATALINA_HOME install sakai:deploy
$CATALINA_HOME environment variable is set; otherwise, replace it with the appropriate path). On Windows replace
This step depends on the fluid-components .war file generated in step 4.
These instructions assumes you are familiar with the Image Gallery Tool, and have already uploaded images and created Gallery collection folders with images in them. If not, visit the Image Gallery page on the Sakai wiki to learn more.
Note: There is currently a bug in the Image Gallery/Resources interaction that requires users to initialize the two tools in a particular order:
Before uploading Gallery images using the Resources tool:
Once this is done, the two tools are sufficiently initialized that you can upload images using the Resources tool, and they will be available to the Image Gallery tool.