Gallery extension - nested galleries and image editing

Hi all, I’ve just implemented 2 new features in the Gallery extension.

The first one is that now it’s possible to create nested galleries.
So a Gallery could be a container for other galleries.

The second feature is the image editing page. It’s only a super beta
version ( :stuck_out_tongue: ), but you can crop an image working with the original
file.
I used the cropper library that someone mentioned in the last days
here. Thanx for the advice :slight_smile:
In the next days I will release a semi-stable version… and then a
will add some other functionalities in the image editing page.
Let me know what you think about it!

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

Thank you guys!


Andrea F.

[email protected]
http://bigchieflabs.com/blog/
http://think.bigchief.it

Hooray for cropping!

Thanks for taking the time to implement this, Andrea.

Just curious:

What would be the best way to upgrade my Gallery installation to this
latest version? I installed the original via SVN…

should I just run

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

… and will I need to rake anything afterwards to get the new
changes running?

Thanks,
*dan

Il giorno 07/giu/07, alle ore 20:06, d n ha scritto:

Just curious:

What would be the best way to upgrade my Gallery installation to this
latest version? I installed the original via SVN…

should I just run

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

I use darcs[1] instead of subversion…so you should type:

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

to check out the repository…or use the “pull” command to update it.
Anyway you can download the development archive here:

http://darcs.bigchieflabs.com/radiant/extensions/gallery/gallery.tar.gz

My server on site5 is now down :frowning: try in a few minutes…or hours :frowning: :(…

… and will I need to rake anything afterwards to get the new
changes running?

You have to run:

rake radiant:extensions:gallery:install

…that runs the migration and updates the js/css files…

[1] http://www.abridgegame.org/darcs/

Thanks,
*dan


Andrea F.

[email protected]
http://bigchieflabs.com/blog/
http://think.bigchief.it

Hi Andrea,

I’m getting an Apache application error (500) when I try to crop an
image…

I know you’re working on a stable version, just wanted to let you know.

Thanks,
*dan

Il giorno 08/giu/07, alle ore 19:33, d n ha scritto:

Hi Andrea,

I’m getting an Apache application error (500) when I try to crop an
image…

I know you’re working on a stable version, just wanted to let you
know.

Thanks,
*dan

Thank you…can you read the errors file to know what is the error?


Andrea F.

[email protected]
http://bigchieflabs.com/blog/
http://think.bigchief.it

You have to run:

rake radiant:extensions:gallery:install

…that runs the migration and updates the js/css files…

I get an error when i run rake for this (on my site5 server):

-bash-3.00$ rake radiant:extensions:gallery:install
/usr/bin/rake:17:Warning: require_gem is obsolete. Use gem instead.
(in /home/danorine/radiant)
rake aborted!
Access denied for user ‘root’@‘localhost’ (using password: NO)

(See full trace by running task with --trace)
-bash-3.00$

Any idea what i’m doing wrong?

Thanks,
Dan

The logfile says:

NoMethodError (undefined method `items’ for nil:NilClass)

I can send you the complete details off-list if it would help.

*Dan

Il giorno 18/giu/07, alle ore 17:02, Dan Simpson ha scritto:

-bash-3.00$ rake radiant:extensions:gallery:install
/usr/bin/rake:17:Warning: require_gem is obsolete. Use gem instead.
(in /home/danorine/radiant)
rake aborted!

Try this:

rake production radiant:extensions:gallery:install

…and let me know! :stuck_out_tongue:


Posted via http://www.ruby-forum.com/.


Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Andrea F.

[email protected]
http://bigchieflabs.com/blog/
http://think.bigchief.it

Thanks for that, Andrea! I wasn’t aware that task could be specified
to affect the production environment.

Dan,

Make sure you have a development database setup, and have defined
it’s parameters in the database.yml file (radiant/public/config).

d n wrote:

Dan,

Make sure you have a development database setup, and have defined
it’s parameters in the database.yml file (radiant/public/config).

Excuse me. I forgot to mention that this was right on the money. I had
only set up parameters for the production database. That worked fine
until i tried to install this extension.

Thanks!
Dan

Dan Simpson wrote:

The site appears fine until i try to go to the admin pages, at which
point i get this error message in my browser:

Application error (Apache)

Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html.

Ok. i found this:

skill -9 -u username -c dispatch.fcgi

to restart the fcgi process. It works! (by which i mean it doesn’t
raise an error).

Now, if i can only figure out how to make the gallery work…

Andrea F. wrote:

Try this:

rake production radiant:extensions:gallery:install

…and let me know! :stuck_out_tongue:

It seems to have worked! But then i got a different error… Here’s
the terminal output:

-bash-3.00$ rake production radiant:extensions:gallery:install
/usr/bin/rake:17:Warning: require_gem is obsolete. Use gem instead.
(in /home/danorine/radiant)
== CreateGalleryExtensionSchema: migrating

– create_table(:galleries)
→ 0.0358s
– create_table(:gallery_items)
→ 0.0263s
== CreateGalleryExtensionSchema: migrated (0.0812s)

== AddHiddenColumn: migrating

– add_column(:galleries, :hidden, :boolean, {:null=>false,
:default=>false})
→ 0.0599s
== AddHiddenColumn: migrated (0.0604s)

== AddNameToGalleryItems: migrating

– add_column(:gallery_items, :name, :string)
→ 0.0141s
== AddNameToGalleryItems: migrated (0.0142s)

== ChangeItemsNameTypeToText: migrating

– change_column(:gallery_items, :description, :text)
→ 0.0135s
== ChangeItemsNameTypeToText: migrated (0.0137s)

== AddParentIdToGallery: migrating

– add_column(:galleries, :parent_id, :integer)
→ 0.0160s
== AddParentIdToGallery: migrated (0.0161s)

cp -r
/home/danorine/radiant/config/…/vendor/extensions/gallery/lib/tasks/…/…/public
/home/danorine/radiant/config/…
-bash-3.00$ rake production radiant:extensions:gallery:example
/usr/bin/rake:17:Warning: require_gem is obsolete. Use gem instead.
(in /home/danorine/radiant)
Gallery page created. In order for lightbox to work you have to include
this Radiant tag in your layout HEAD section:
<r:gallery:lightbox_stuff />
Check it out at http://yoursite/gallery-example
-bash-3.00$

The site appears fine until i try to go to the admin pages, at which
point i get this error message in my browser:

Application error (Apache)

Change this error message for exceptions thrown outside of an action
(like in Dispatcher setups or broken Ruby code) in public/500.html.

You can see it for yourself at 404 - PAGE NOT FOUND.

Thanks for any assistance you can give me!

Peace,
Dan

A couple of weeks ago I posted a patch to add Gibberish support to
Radiant. It was actually quite easy. I have a post over on the dev
list at Google groups, but that one is very slow.

Has anyone (especially from the core team) had a look? I still feel
strongly that we should get going on this, it will only get harder.
And Gibberish is great, and makes everything very easy to maintain.

Take a look Patch Number 504, I think. Unfortunately the site is
down, so I can’t check…

Keith B.
Tel: +49-7731-79838380
[email protected]
http://keithbingman.com

Thanks, just curious, as I had heard nothing.

I haven’t done the Textile and Markdown plugins, which mainly means
the reference. What are thoughts on this? Do people think it is
required? Nice, of course, but required?

Keith B.
Tel: +49-7731-79838380
[email protected]
http://keithbingman.com

Not sure if this is the kind of thing you were looking for but for our
CMS we’ve created a helper to drop in a Textile editor for text areas.

http://slateinfo.blogs.wvu.edu/plugins/textile_editor_helper

On 6/19/07, Keith B. [email protected] wrote:


Proud supporter of DC United

I was merely referring to the documentation that is included in
Radiant for both Textile and Markdown. I am trying to translate the
Radiant interface, or more correctly, make it translatable. I was
just wondering how far I should go…

Keith B.
Tel: +49-7731-79838380
[email protected]
http://keithbingman.com

Keith B. wrote:

Thanks, just curious, as I had heard nothing.

Sorry about that Keith. I meant to respond but I haven’t had a chance to
look at it yet. I am very excited about it and am thrilled that you have
taken on the challenge.

I haven’t done the Textile and Markdown plugins, which mainly means
the reference. What are thoughts on this? Do people think it is
required? Nice, of course, but required?

We need a standard way for extensions to be internationalized. They will
need their own translation files, of course.


John

As I said, this isn’t what I was talking about, but this looks very
interesting, as does Slate. I will definitely give it a whirl as soon
as I can.

Keith B.