# Installing extensions

**URL:** <https://www.ruby-forum.com/t/installing-extensions/142802>\
**Category:** Radiant CMS\
**Created:** [July 11, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/installing-extensions/142802 "2008-07-11T17:49:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 11, 2008, 5:49pm UTC](https://www.ruby-forum.com/t/installing-extensions/142802/1 "2008-07-11T17:49:17Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 11, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/installing-extensions/142802/2 "2008-07-11T17:58:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 11, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/installing-extensions/142802/3 "2008-07-11T18:07:40Z")

</div>

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](http://wiki.radiantcms.org) may be helpful.

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 11, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/installing-extensions/142802/4 "2008-07-11T18:18:48Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 11, 2008, 7:02pm UTC](https://www.ruby-forum.com/t/installing-extensions/142802/5 "2008-07-11T19:02:11Z")

</div>

Jan frederik Poulsen wrote:

> [http://www.ruby-forum.com/attachment/2380/Picture\_2.jpg](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.

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 11, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/installing-extensions/142802/6 "2008-07-11T18:44:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 11, 2008, 7:08pm UTC](https://www.ruby-forum.com/t/installing-extensions/142802/7 "2008-07-11T19:08:03Z")

</div>

removed\_email\_address@domain.invalid 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.

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 12, 2008, 1:26am UTC](https://www.ruby-forum.com/t/installing-extensions/142802/8 "2008-07-12T01:26:29Z")

</div>

Mohit S. wrote:

> Jan frederik Poulsen wrote:
> 
> > [http://www.ruby-forum.com/attachment/2380/Picture\_2.jpg](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?

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 12, 2008, 2:01am UTC](https://www.ruby-forum.com/t/installing-extensions/142802/9 "2008-07-12T02:01:22Z")

</div>

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?

> **[GitHub - madrobby/scriptaculous: script.aculo.us is an open-source JavaScript...](https://github.com/madrobby/scriptaculous)**
>
> script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours. - GitHub - madrobby/scriptaculous: script.aculo.us is an open-source JavaScript framework for vis...

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 12, 2008, 2:24am UTC](https://www.ruby-forum.com/t/installing-extensions/142802/10 "2008-07-12T02:24:49Z")

</div>

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
