Archive for April, 2007

Using Radiant Gallery extensions as link manager

Thursday, April 26th, 2007

I’m working on a new website, and I’m obviously using Radiant as CMS. My client need to manage some links…some of this are displayed in the sidebar, others in an other page; each link has an image. I simply created two differents galleries using my Gallery extension; the first one called ‘Links’ and the second one called ‘Sidebar Links’..then i added this code in the layout inside the sidebar:

<r:gallery id="1">

  <r:gallery:items:each>

    <li><a href="<r:gallery:item:description />"><img src="<r:gallery:item:thumb width="200" />" /></a></li>

  </r:gallery:items:each>

</r:gallery>

…and similar in the links page. Now i can simply add a link uploading an image in one of the two galleries, and setting the link url as image description.

Seashore

Wednesday, April 25th, 2007

I’m not a graphic designer, but sometimes i need to modify some images..often only a simple resize or crop. I usually use Gimp as editor..it’s simple to use and it’s open source! But I’ve just found a new tool that I can run quickly on my mac..its name is Seashore; it is based around the GIMP’s technology and it use Cocoa libraries..it has fewer features than Gimp, but it doesn’t need Apple’s X11!!

Radiant Gallery extension 0.3.0

Monday, April 23rd, 2007

There are two main changes on Radiant Gallery Extension…the first one is visible in the admin page…do you want to use an image from the web instead of upload it? Switch to “set file url” mode and specify its url!

Radiant Gallery extension retrieve by url

The second change is visibile using the lightbox tag:

<r:gallery:lightbox />

…this is the new visualization:

Radiant Gallery Extensions Lightbox style

try it now!

Radiant 0.6

Thursday, April 19th, 2007

Radiant 0.6 is to be release this Saturday. Sean Cribbs wrote a post about all the changes of the new release…check it out!

Radiant Gallery extension 0.2.0

Tuesday, April 17th, 2007

Gallery 0.2.0 just released! Check it out with darcs:

darcs get http://darcs.bigchieflabs.com/radiant/extensions/gallery/

..or download the archive here.

I’ve got some problem with my repository..if you already use Gallery extension, delete it and download it again, instead of update (pull) with darcs. Also delete galleries and gallery_items tables and reinstall extension..read here for more docs.

Ahhh Yeah!!

Monday, April 16th, 2007

I came back from my tour..10 amazing days!! Cheers big ears!

Oh Yeah!

Thursday, April 5th, 2007

I’m going on tour in UK with my band..see you in 11 days!

Abel is dying

Radiant Gallery Extension - image description

Wednesday, April 4th, 2007

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

Radiant Gallery Extension - Edit image description

Rake and darcs in Radiant extensions

Sunday, April 1st, 2007

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!