Radiant Gallery Extension – image description
April 4th, 2007I’ve added a new field to gallery items: description! After upload click on the filename under image to edit!
Try gallery extension now!

I’ve added a new field to gallery items: description! After upload click on the filename under image to edit!
Try gallery extension now!

I usually use darcs as code management system..it’s cool and easy to use…but i’ve got a problem using rake in my Radiant app..in fact when I type:
rake radiant:extensions:my_extension:task
..my task is executed twice because files in _darcs folder are loaded too..my friend Giovanni helps me saying that the code that runs extensions rakefiles is the following:
[RAILS_ROOT, RADIANT_ROOT].uniq.each do |root|
Dir[root + '/vendor/extensions/**/tasks/**/*.rake'].sort.each { |ext|
load ext
}
end
…thus I changed extensions rakefile with theese lines:
[RAILS_ROOT, RADIANT_ROOT].uniq.each do |root|
files = Dir[root + '/vendor/extensions/**/tasks/**/*.rake']
files.delete_if do |file|
file.include? '_darcs'
end
files.sort.each { |ext| load ext }
end
…and now it excludes all files in _darcs folder!
I’ve added two new tags in Gallery extension:
With theese new tags you can easily use Lightbox JS v2.0 in your Gallery page!!

I added Lightbox JS v2.0 in my Radiant Gallery extension..now you can can view all the thumbnails of the gallery and enlarge each one with this cool javascript library:

I’m working on a new website..I’ve decided to use Radiant as CMS…it is very simple to use and to configure, and it could be used for the most of my works! My client needs some simple pages, and with the Radiant backend he can easily manage all the contents, but..he can’t create photo galleries!!That is why i’ve started develop my Gallery extension for radiant. If you want give that a try… you can download the archive, or use darcs to get it from my repository typing:
darcs get http://darcs.bigchieflabs.com/radiant/extensions/gallery/
Extract it (or get it with darcs) in your extensions folder (RADIANT_ROOT/vendors/extensions) and type theese commands in your RADIANT_ROOT to install it:
rake radiant:extensions:gallery:install
rake radiant:extensions:gallery:example
..enjoy!
