Using Radiant Gallery extensions as link manager

April 26th, 2007 by Andrea Franz

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.


3 Comments on “Using Radiant Gallery extensions as link manager”

  1. muadnem
    9:22 pm on May 13th, 2007:

    I love this extension! Please keep up the good work. The code does need some refactoring for sure. Also.. some things I noticed were:

    storing the original image file twice, once in the gallery index folder and once in the thumbs folder under it. not a big deal.

    i love the lightbox but it would be nice if you could bypass the resizing feature. such as

    and the way i figured out how to bypass resizing with the item tag was: a more intuitive tag would be

    and.. i would love to see you turn this gallery extension into a file repository extension. an extension that lets you upload any file and gives access to them. very much like the gallery extension but for all types of files, like mp3s, pdf’s, exe’s, etc. seems like all you’d have to do is strip the resizing out and you’re 95% done.

    keep up the good work!

  2. andrea
    6:15 am on May 14th, 2007:

    Thank you muadnem…I know it need some refactoring..i’ll do it asap :P !
    When you upload an image, the original file is stored under the gallery folder..under the thumb folder are stored 2 copies of the original, with 2 different sizes, the first for the gallery list view, and the second for the preview in lightbox style.
    In my latest post I wrote an example I used to list some mp3’s files..write me again if you have some
    ideas ;) thank you!!

  3. Chandra
    4:30 pm on October 27th, 2008:

    Good words.

Comments are closed.