Radiant Duplicate extension 1.6 is just released…you can now duplicate or move a page and all its children.

Sometimes, using radiant to build a site, I need to generate many pages with the same page parts and the same contents, aside a few things..instead of copy all the page parts and all the contents I created the Radiant Duplicate extension. It adds a new action (duplicate) near the ‘Add child’ button:

Radiant Duplicate extension

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.

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

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!

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.

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

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:

  • gallery:lightbox
  • gallery:lightbox_list

With theese new tags you can easily use Lightbox JS v2.0 in your Gallery page!!
Lightbox tags

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:

Radiant Gallery Extension - lightbox preview