fancy_box
Makes it very easy to use fancy box for displaying images in “lightbox” style overlays. Integrates with the paperclipped extension so that you can just use ‘fancy_img’ anywhere you would use ‘image’ with paperclipped.
This will insert a fancy-box zoomable image:
<r:assets:fancy_img image_id="77"/>
Usage is very customisable however so you pass in arguments to modify the thumbnail, the image being linked to, and the link itself.
Read more at the repository.
| Author | Arthur Gunn |
|---|---|
| Website | http://github.com/gunn/radiant-fancy_box-extension |
| Repository | git://github.com/gunn/radiant-fancy_box-extension.git |
| Supports | Radiant 0.8.1 |
| Record Created | March 17, 2010 (almost 2 years ago) |
| Last Updated | March 23, 2010 (almost 2 years ago) |
Installation
At the command prompt, in the root of your Radiant project, type:
script/extension install fancy_box
In the heads of the pages you want fancybox functionality:
<r:snippet name="fancy_box_css"/>
And also in those pages (at the bottom of the body means no extra wait time):
<!-- Add jquery somehow: -->
<script language="javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"
type="text/javascript"></script>
<r:snippet name="fancy_box_js"/>
