Skip to content

jfqd/radiant-asset_gallery-extension

 
 

Repository files navigation

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

About

Create and display galleries of images from your Radiant Assets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 87.2%
  • JavaScript 12.8%