Forum: Radiant CMS Using Plugins in Extensions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
94b65edd1831162aae2d26b46b0401b6?d=identicon&s=25 Josh Huckabee (jhuckabee)
on 2007-05-19 17:23
(Received via mailing list)

I'm working on a banner ad extension for a friend and am currently using
file_column plugin (althought I've been thinking about using
instead) to handle the image upload.  Right now I've just stuck it in
root app's vendor/plugins directory.  Is this acceptable practice or is
there a better way to do it?  I know the gallery module handles the
upload manually, but I wanted to stick with a proven method without
rewriting existing code.

Any thoughts?

D9e66bb7361fea87a658ceecb2f547d6?d=identicon&s=25 Mario T. Lanza (mlanza)
on 2007-05-19 17:41
I'm still a relative Ruby/Rails/Radiant rookie; however, that's what
I've been doing.  I basically ask myself, "Do I want this plugin
affecting all Radiant instances or just the one instance?"  That answer
determines where I put it.  Using the root helps with staying DRY.
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-05-19 18:06
(Received via mailing list)
If you want an example of how to integrate a plugin into an extension,
check out page_attachments.  It's not especially straightforward...
you might have to dump code from init.rb of the plugin in the activate
method of your extension.

E91bbb5eae81347ed57880eea764c0f9?d=identicon&s=25 Keith Bingman (Guest)
on 2007-05-19 18:11
(Received via mailing list)
This is what I have been doing, but I really reccomend shifting to
attachment_fu. The killer feature is also that you can have image
processing without RMagick, which leaks memory and is generally a
pain. ImageScience, MiniMagick and RMagick are all provided, as well
as DB and file system storage.

Like Sean said extension. Look at his page_attachments for some good
examples. I will be updating some of my own extensions to match the
new hooks for the views.

Keith Bingman
Tel: +49-7731-79838380
This topic is locked and can not be replied to.