Create and display galleries of images from your Radiant Assets.
Ruby JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 4 commits ahead of sbmsuite:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
db/migrate
features/support
lib
public
spec
MIT-LICENSE
README.textile
Rakefile
asset_gallery_extension.rb
cucumber.yml

README.textile

Asset Gallery

This extension allows you to create galleries of Paperclipped Assets. Provides an admin interface to add, sort and remove assets from a Gallery with drag and drop, and radius tags to easily include the Galleries in your site.

sbmsuite modified the views from zapnap/radiant-flash-gallery-extension to use in the new extension. However THIS IS NOT A FORK. It is a newly created extension. jfqd modified the extension to support ujs drag and drop and globalize2-paperclipped compatibility.

Tested with radiant 0.9.1

Installation

Install the Paperclipped Extension before the Asset Gallery Extension:

git clone git://github.com/kbingman/paperclipped.git vendor/extensions/paperclipped
  
rake production db:migrate:extensions
rake production radiant:extensions:paperclipped:update

Now install the Asset Gallery Extension:

git clone git://github.com/jfqd/radiant-asset_gallery-extension vendor/extensions/asset_gallery
  
rake production db:migrate:extensions
rake production radiant:extensions:asset_gallery:update

Be careful about the extensions load order:

config.extensions = [ :paperclipped, :all ]

Tag Examples

List of galleries

<r:gallery:each>
  <div>
    <div><r:gallery:first_image size="thumbnail" />
    <div><r:gallery:name /></div>
  </div>
</r:gallery:each>

Images of a gallery with caption

<r:gallery:items name="my-gallery">
  <div class="slide">
    <r:gallery_item:image size="normal" />
    <p><r:gallery_item:caption /></p>
  </div>
</r:gallery:items>

Compatibility

This extension is compatible with the Globalize2-Paperclipped Extension. You need to install the Globalize2-Paperclipped Extension before the Asset Gallery Extension. Please read the installation information about the Globalize2-Paperclipped Extension in the Readme.

git clone git://github.com/Aissac/radiant-globalize2-paperclipped-extension.git vendor/extensions/globalize2_paperclipped
rake radiant:extensions:globalize2_paperclipped:migrate
rake radiant:extensions:globalize2_paperclipped:update

Be careful about the extensions load order:

config.extensions = [ :paperclipped, :globalize2, :globalize2_paperclipped, :all ]

Contributors

sbmsuite
jfqd