- Allows you to create a filmstrip gallery in Radiant and display on a page.
- Loading order of images in the filmstrip can be adjusted using drag-and-drop reordering.
- Filmstrip images are pulled-in to the Flash via and XML file produced in the *.rxml views in app/views/filmstrips.
Imagemagick
http://www.imagemagick.org/script/index.php
SWFObject
http://blog.deconcept.com/swfobject
Gems/Plugins
Paperclip, http://github.com/thoughtbot/paperclip/tree/master
Rmagick, http://rmagick.rubyforge.org
Grab the extensions from GitHub and place it in vendor/extensions
git clone git://github.com/scullygroup/radiant-filmstrip.git vendor/extensions/filmstrip
Run the following commands:
rake radiant:extensions:filmstrip:migrate
rake radiant:extensions:filmstrip:update
Be sure to vendor Paperclip in environment.rb
config.gem 'thoughtbot-paperclip', :lib => 'paperclip', :source => 'http://gems.github.com' </pre>
In your template, reference swfobject.js:
<script src="/javascripts/swfobject.js" type="text/javascript"></script>
Then, create a section like the following, wherever you want the filmstrip to appear:
<div id="filmstrip"></div> <script type="text/javascript" charset="utf-8"> var flashvars = { xml_path:"/filmstrip" }; var params = { menu: "false", wmode: "transparent" }; var attributes = {}; swfobject.embedSWF("/swf/filmstrip.swf", "filmstrip", "100%", "290","9.0.0", "", flashvars, params, attributes); </script>
The code above uses SWFObject to create the Flash embed code, using XML to populate the filmstrip.
Copyright © 2009 Scully Group, released under the MIT License