Installing extensions

I’m on a mac.

Radiant is located in two places on my machine:

  1. As “my app” - my specific site: ~/Sites/

and

  1. As “the generator” Library/Ruby/Gems/1.8/gems/radiant-0.6.7

Wher are extensions supposed to be installed? In my specifik site of the
“original” place?

For add on extensions you want the path to your running Radiant
application, such as, “~/Sites/my app/vendor/extensions”

Jan frederik Poulsen wrote:

Wher are extensions supposed to be installed? In my specifik site of the
“original” place?

Gems are system wide, although they can be installed locally by a
non-privileged user. You should never touch system wide gems, unless
you really, really know what you’re doing. And even then, better
choices can be made.

Your app should hold all of its extensions in the local
./vendor/extensions directory.

In case of uncertainty, wiki.radiantcms.org may be helpful.

On Fri, 2008-07-11 at 17:49 +0200, Jan frederik Poulsen wrote:

Wher are extensions supposed to be installed? In my specifik site of the
“original” place?

First of all, It really isn’t necessary to set up your Radiant sites in
the ~/Sites/ directory. That is only for your files(html, etc.)/apps
(php, etc.) that are being served directly by your local install of
Apache. Radiant apps, like all Rails apps, can be anywhere on your hd.
You run them independently from your local Apache instance started from
teh “Sharing” tab in System Prefs. And Radiant apps don’t need to be
named “Radiant,” they can be anything “Goober”, “Bad_client”, etc.

Your radiant-0.6.7 gem is the brains behind your Radiant apps. Once you
have created a Radiant project, the gem handles the heavy lifting. Once
you have generated a Radiant project you will have a directory named
“vendor” where you will find your “plugins” and “extensions”
directories. As you might have guessed, the vendor/extensions directory
is where you install extensions. So if you have a project called
“radiant” in your “~/Sites” directory, your extensions would go in
“~/Sites/radiant/vendor/extensions”.

If you look at the list of third party extensions on the radiantcms.org
website, the “page_attachments” extension has a link to the installation
procedure for that extension. I find it helpful sometimes to read
through it for correct syntax for installing and updating extensions.

There was a lot of talk recently on reworking the wiki, and I think the
topic of installing extensions should be one of the first things added
to it.

I hope that helps.

~Nate

Jan frederik Poulsen wrote:

http://www.ruby-forum.com/attachment/2380/Picture_2.jpg

If I remember correctly, this is a known problem that happens only when
you’re running Radiant 0.6.7 in Development mode. Is that how you’re
using it?

Cheers,
Mohit.
7/12/2008 | 1:01 AM.

Thank you very much.

I got working now.

Except for this funky error.

So my next question would probably be how to remove extensions, but I’ll
try and look it up in the wiki.

[email protected] wrote:

There was a lot of talk recently on reworking the wiki, and I think the
topic of installing extensions should be one of the first things added
to it.

I hope that helps.

Nate, there is an entry on the ‘Summer Reboot’ wiki site called
‘Installing your first extension (PageAttachments?)’

I think that is where this part should be done.

That said, I like this post of yours - just wondering where it should go
into the wiki!

Cheers,
Mohit.
7/12/2008 | 1:06 AM.

Mohit S. wrote:

Jan frederik Poulsen wrote:

http://www.ruby-forum.com/attachment/2380/Picture_2.jpg

If I remember correctly, this is a known problem that happens only when
you’re running Radiant 0.6.7 in Development mode. Is that how you’re
using it?

Cheers,
Mohit.
7/12/2008 | 1:01 AM.

Yes I think i’m running it in development if this has to do with the
“_development” / “_production” stuff

So do i just make a _production database and “re”-rake to it then?

Well found out it was easy - i just upgraded to the latest edge release

  • which solves the issue.

Now I would like to se drag’n’drop reordering like in frogCMS - which
ironically should be behind radiant in this regard, since frog is a
reimplementation in php.

Is it difficult to pull off? I would think that the behaviours
“Sortable” and Draggables/Droppables in scriptaculous would enable
radiant to do this almost for free, since the framework is already
heavily used in Rails?

I’ve done drag-and-drop with table rows and it’s not pretty. I’m not
sure how frogCMS does it. This is on the roadmap, but not for a while.

Sean