BoxLang 🚀 A New JVM Dynamic Language Learn More...

Image Carousel

v1.0 Plugins
A simple image carousel using the JQuery Tools "Scrollable" library.

- Copy the Carousel.cfc plugin into your plugins directory.
- Copy or include the CSS for the carousel into your layout.
- Include the jquery.tools.full.min.js in your layout.

In your view, add:
#getMyPlugin("Carousel").render(rc.myObject.getImageArray())#

Where myObject includes an array of Image Objects (you will probably note I'm using Transfer ORM, but this plugin by no means requires use of Transfer).

The Carousel assumes there is a Render() method in your Image Object, and will render it accordingly. If your use-case is different (chances are it is), modify the output accordingly.

1.0: Initial Release
  •   Craig McDonald
  • Published
  • 1.0 is the latest of 1 release(s)
    Published
  • Published on {{ getFullDate("2016-06-09T13:11:51Z") }}

$ box install Image-Carousel

No collaborators yet.
 
  • {{ getFullDate("2010-01-27T18:26:47Z") }}
  • {{ getFullDate("2016-06-09T13:11:51Z") }}
  • 7,612
  • 5,027