Subversion Support for Gallery Extension

December 5th, 2007 by Andrea Franz

I’m going to move all my projects to subversion. Now I’m moving the Gallery extension.The subversion repository is here:

http://dev.gravityblast.com/svn/projects/radiant/extensions/gallery/

You can check it out with

svn co http://dev.gravityblast.com/svn/projects/radiant/extensions/gallery/

The new version uses attachment_fu, and the filesystem organization is changed. In order to use the new version with galleries created by old versions of the Gallery extension you must run this rake task:

rake RAILS_ENV="production" radiant:extensions:gallery:version_0_7_0:upgrade_filesystem_structure

I suggest making a backup of all your pictures before running the above rake task. Let me know if everything works correctly!


9 Comments on “Subversion Support for Gallery Extension”

  1. Hatem
    4:56 pm on January 13th, 2008:

    Thank you for the great extension.

    I have some questions:

    1) When I change the page layout to “Gallery Layout – Simple with lightbox”, I lose the inherited layout of my site. How to display the gallery in a page that uses my layout without losing the lightbox effect ?

    2) I want to create 2 pages: “Photo Gallery” and “Video Gallery”. The problem is that both pages display all galleries! How to tell the gallery the name of the page in which it should display?

    3) How to display the gallery inside a normal page that contains other content, a table and a sidebar for example? Also, how to display the gallery in the sidebar?

  2. Andrea Franz
    6:16 pm on January 13th, 2008:

    1 – If you want to use your layout, simply take the code inside the body of the “Gallery Layout – Simple with lightbox” and put it in your page.

    2 – You can specify which gallery use when you loop through the gallery items with something like this:

    <r:gallery:items:each id=”ID_OF_YOUR_GALLERY”>

    3 – something like the answer 2

    If you want you can ask here:

    http://groups.google.com/group/radiant-gallery

    …this ML have just been opened!

  3. Bill
    12:30 am on March 3rd, 2008:

    Bulk import still gets stuck after the 1st image.

  4. Andrea Franz
    11:15 am on March 4th, 2008:

    Bill, are you using the last version?

  5. sean
    7:39 pm on July 12th, 2008:

    Hi Andrea,

    Thanks for writing this, but I’m having a lot of problems integrating it with my radiant site, and was hoping you’d be able to help.

    I’ve installed the extension via SVN, run the rake task and all seems well. However, I have 2 problems:

    1) After installing just the extension, I browse the ‘Galleries’ tab in the admin page, and find that none of the javascript libraries or css files included with your project are actually being found (i.e. I’m getting a 404 error). This is despite the fact that other files in the same directory (/public/javascripts/; /public/stylesheets/; etc…) are being read.

    2) After installing attachment_fu, none of my javascript/css resources can be found, not even the ones used by radiant (i.e. main.css)

    I know I’m probably not providing you with enough info to give me an answer straight away, but please feel free to get in touch if you can. I’ll pass along any info you might require.

    Best Wishes,

    Sean.

  6. Andrea Franz
    8:51 am on July 14th, 2008:

    I sean, the svn repository is not up to date. Try the git repo from github and let me know:

    http://github.com/pilu/radiant-gallery/tree/master

  7. Sean
    6:08 am on July 15th, 2008:

    Hi Andrea,

    Installed via git, got the following error when running rake:

    Could not load extension from file: radiant-gallery_extension.
    #
    rake aborted!
    You have a nil object when you didn’t expect it!
    You might have expected an instance of Array.
    The error occurred while evaluating nil.+

    (See full trace by running task with –trace)

    Thoughts?

  8. Andrea Franz
    9:13 am on July 15th, 2008:

    Rename the radiant-gallery_extension folder to gallery.
    Then run the radiant:extensions:galery:install task and it should install it..let me know..

  9. Sean
    6:38 pm on July 18th, 2008:

    That worked, but destroyed my pathing/routes, so that Radiant cannot find any or js files anymore.

    May I ask:

    - What version of Rails is this extension assuming I’m using?
    - Is this extension meant to be used in production mode only?