github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

pilu / radiant-gallery

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 75
    • 18
  • Source
  • Commits
  • Network (18)
  • Issues (1)
  • Downloads (4)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • 0.7.1
    • master ✓
  • Tags (4)
    • v0.7.14
    • 0.8.0
    • 0.7.15
    • 0.7.13
Sending Request…
Click here to lend your support to: radiant-gallery and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Photo Gallery Management System based on Radiant CMS (Ruby on Rails). — Read more

  cancel

http://gravityblast.com/projects/radiant-gallery/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

NOT MAINTAINED MESSAGE 
Thomas Cowell (author)
Fri Oct 16 01:52:18 -0700 2009
hairballopolis (committer)
Fri Oct 16 11:20:53 -0700 2009
commit  c1422ec1442568c24529f79b99d51aaef8fad1fb
tree    3fcffc8f3ee5a6f055ecd78427e88725b11a6e44
parent  9279236307e4802eda1ec70bfaee2c5edd5afac5
radiant-gallery /
name age
history
message
file .gitignore Fri Apr 11 11:34:33 -0700 2008 Removed old non-restful controllers [pilu]
file CROPPER_LICENSE Fri Nov 30 01:01:45 -0800 2007 added radiant gallery extension git-svn-id: ht... [pilu]
file LICENSE Fri Nov 30 01:01:45 -0800 2007 added radiant gallery extension git-svn-id: ht... [pilu]
file README.rdoc Fri Oct 16 11:20:53 -0700 2009 NOT MAINTAINED MESSAGE [Thomas Cowell]
file Rakefile Fri Nov 30 01:01:45 -0800 2007 added radiant gallery extension git-svn-id: ht... [pilu]
file TODO Fri Nov 30 01:01:45 -0800 2007 added radiant gallery extension git-svn-id: ht... [pilu]
directory app/ Thu Oct 15 15:39:53 -0700 2009 added s3 store as config value [ehaselwanter]
directory config/ Sat Jun 20 09:07:25 -0700 2009 merging with hairballopolis/radiant-gallery [hairballopolis]
directory db/ Sat Jun 20 09:07:25 -0700 2009 merging with hairballopolis/radiant-gallery [hairballopolis]
file gallery_extension.rb Tue Aug 04 04:02:49 -0700 2009 fix for radiant_0.8.0 loading issue [hairballopolis]
directory layouts/ Sat Nov 29 08:06:47 -0800 2008 changed all layouts to use the new prefix attri... [pilu]
directory lib/ Tue Aug 04 03:19:23 -0700 2009 fix for keywords='keyword' scope='all' on galle... [hairballopolis]
directory public/ Sat Jun 20 09:07:25 -0700 2009 merging with hairballopolis/radiant-gallery [hairballopolis]
directory test/ Fri Nov 28 17:54:31 -0800 2008 fixed test helper [pilu]
README.rdoc

***********************************************************************

  • THIS REPO IS NOT BEING MAINTAINED MAINTAINED AS THE OFFICIAL REPO *
  • PLEASE USE: github.com/hairballopolis/radiant-gallery *
  • git clone git://github.com/hairballopolis/radiant-gallery.git *

***********************************************************************

Gallery

A Radiant (radiantcms.org) extension by Andrea Franz (gravityblast.com) that allows to manage galleries of images, photos and all kind of

Features

  • Multiple nested galleries
  • Multiple upload
  • Import from ftp
  • Images/Files sorting by drag-n-drop
  • Automatic thumbnail generation for images after upload
  • Preview in lightwindow for images

Installation

After tha Radiant installation you must install the attachment_fu plugin:

  cd /path/to/radiant

  git clone git://github.com/technoweenie/attachment_fu.git vendor/plugins/attachment_fu

Then install the Gallery extension:

  git clone git://github.com/pilu/radiant-gallery.git vendor/extensions/gallery

Now you can run the install task:

  rake RAILS_ENV=production radiant:extensions:gallery:install

Configuration

The installation task creates a file called gallery.yml under /path/to/radiant/config/extensions/gallery/. Inside that file there are some variables you can edit:

  • path_prefix: The galleries folder path.
  • processor: The processor used to create thumbnails (rmagick | image_science | mini_magick).
  • default_thumbnails: a list of thumbnails that will be generated after each upload.

Documentation

Your first gallery

After the installation you will be able to see the ‘Galleries’ tab in the Radiant administration panel. Click on it and start creating galleries and uploading images. Now create a new page, choose one of the layouts created during the gallery extension installation, and set ‘Gallery’ as page type. Publish the new page and go to its url.

Displaying images from a specific gallery

  <r:gallery id="GALLERY_ID">
    <ul>
      <r:gallery:items:each by="position" sort="asc">
        <li><r:gallery:item:path /></li>
      </r:gallery:items:each>
    </ul>
  </r:gallery>

Displaying all galleries

  <ul>
    <r:galleries:each level="all|top|bottom|current">
      <li><r:gallery:name /></li>
    </r:galleries:each>
  </ul>

The value of the level attribute could be:

  • all (default): displays all galleries
  • top: displays galleries without a parent
  • bottom: displays galleries without children
  • current: displays children of the current gallery. If the current gallery is not set, it displays all the top galleries.

Displaying all images

  <ul>
    <r:gallery:items:each by="created_at" sort="desc" scope="all">
      <li><r:gallery:item:thumb width="100" height="100" prefix="small" geometry="c50x50"/></li>
    </r:gallery:items:each>
  </ul>

The value of the scope attribute could be:

  • gallery (default): displays images of the current gallery
  • all: displays all uploaded images

The current Gallery

Create a gallery tree like the following:

  - Languages
       | - Ruby
       | - Python
       | - Java

Now create a Gallery page (with gallery as page type) called gallery. Go to its url (localhost:3000/gallery). In that page the current gallery is not set, but if you go to ’/gallery/languages’, the current gallery is Languages, under ’/gallery/languages/ruby’ the current gallery is Ruby and so on.

Otherwise you can set the current gallery using the gallery tag:

  <r:gallery id="GALLERY_ID">
    <r:galleries:each level="current">
      <!-- loop through the current gallery children -->
    </r:galleries>
    <r:gallery:items>
      <!-- loop through the current gallery images -->
    </r:gallery:items>
  <r:gallery>

Thumbnails generation

Thumbnails are generated on the fly with the gallery:item:thumb tag. Inside a page you can write:

    <r:gallery id="GALLERY_ID">
      <r:gallery:item:thumb width="200" height="100" prefix="small" position="first" geometry="c50x50"/>
    </r:gallery>

The first time you will open that page, the system will generate a thumbnail for the first image of the gallery with id GALLERY_ID. The signature of that thumbnail will be: ‘small_200x100’. The next time the system will not generate the thumbnail if that image already has a thumbnail with that signature. If you want to generate that thumbnail just after the upload of the image, add that signature inside the gallery.yml configuration file:

  default_thumbnails:
    admin_thumb: 300x300   # do not remove
    admin_preview: 500x500 # do not remove
    small: 200x100 # this is the signature you use in the page.
    square: c90x90 # specific sized images with a center crop

Contributors

  • Version: 0.3.0 - Adam Salter - 10outta10.com
  • Version: 0.7.* - Tom Cowell - eightsquarestudio.com

Credits

Icons by www.famfamfam.com/

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server