# Radiant::Config

**URL:** <https://www.ruby-forum.com/t/radiant-config/84024>\
**Category:** Radiant CMS\
**Created:** [January 31, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/radiant-config/84024 "2007-01-31T16:34:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [January 31, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/radiant-config/84024/1 "2007-01-31T16:34:32Z")

</div>

Is there any reason to not be storing configuration values for my  
Extension via the Radiant::Config class?

I have been making the keys like  
“extensions.extension\_name.setting\_name”

Am I off-track or on-target?

Loren

---

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [January 31, 2007, 5:13pm UTC](https://www.ruby-forum.com/t/radiant-config/84024/2 "2007-01-31T17:13:36Z")

</div>

Loren,

That is what we will be suggesting going forward. One of my tasks this  
week  
is to remove support for the ‘config’ page part. Any extension that  
wants  
to use it will need to load it manually. After I complete that, I will  
be  
moving the Mailer extension over to using Radiant::Config (with an  
importation script, of course). The LDAP extension already uses  
Radiant::Config.

Sean

---

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [January 31, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/radiant-config/84024/3 "2007-01-31T18:09:42Z")

</div>

Cool, that sounds great. Makes plenty of sense to me. Is their  
anything to say about the convention extensions.extension\_name.key?

Thanks!

L

---

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [January 31, 2007, 7:53pm UTC](https://www.ruby-forum.com/t/radiant-config/84024/4 "2007-01-31T19:53:55Z")

</div>

I think we can leave that to personal preference, until such time comes  
a  
need to constrain the domain. Personally, I use extension\_name.key.  
But do  
what you like.

Sean

---

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [February 1, 2007, 12:03am UTC](https://www.ruby-forum.com/t/radiant-config/84024/5 "2007-02-01T00:03:17Z")

</div>

On Jan 31, 2007, at 11:12 AM, Sean C. wrote:

> Loren,
> 
> That is what we will be suggesting going forward. One of my tasks  
> this week is to remove support for the ‘config’ page part. Any  
> extension that wants to use it will need to load it manually.  
> After I complete that, I will be moving the Mailer extension over  
> to using Radiant::Config (with an importation script, of course).  
> The LDAP extension already uses Radiant::Config.
> 
> Sean

Is there going to be an interface for editing the Radiant::Config via  
browser instead of SQL?

~~ Brian

---

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [February 1, 2007, 12:16am UTC](https://www.ruby-forum.com/t/radiant-config/84024/6 "2007-02-01T00:16:18Z")

</div>

Brian G. wrote:

> Is there going to be an interface for editing the Radiant::Config via  
> browser instead of SQL?

I like to use script/console for editing config values:

% script/console production  
Loading production environment

> > Radiant::Config[‘my.key’] = ‘value’  
> > =\> “value”  
> > exit

Ultimately I think we will want something in the interface to handle  
this, but I haven’t settled on how to do it yet.

Sometimes it is appropriate to let things go for a while when you aren’t  
sure about the best approach.

It would be trivial to implement an editing interface with an extension.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [February 1, 2007, 12:36am UTC](https://www.ruby-forum.com/t/radiant-config/84024/7 "2007-02-01T00:36:19Z")

</div>

Amen and amen. Scaffold-up an extension for managing config values  
and call it good until this next release is out then it can be  
thought about again once a larger set of Extensions (and hence real  
requirements) start to appear.

I’m excited to just ad a config tab right into my Calendar extension  
which filters on it’s config parameters only. That’ll be great.

---

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [February 1, 2007, 1:03am UTC](https://www.ruby-forum.com/t/radiant-config/84024/8 "2007-02-01T01:03:21Z")

</div>

That will be up to the creator of the extension. Regarding the default  
values in the database (things like the UI title, subtitle, etc), there  
have been no plans made although it would be rather trivial to  
implement. It’s just currently not high on the list.

Sean

---

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [February 1, 2007, 5:57am UTC](https://www.ruby-forum.com/t/radiant-config/84024/9 "2007-02-01T05:57:38Z")

</div>

Question for you all;

My host (Dreamhost) is about to upgrade to 1.2.1. Will 1.2.1 break  
0.5.2?

Thanks!  
Andrew

---

<div class="post-metadata">

**Author:** ![lorenjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lorenjohnson](https://www.ruby-forum.com/u/lorenjohnson)\
**Post date:** [February 1, 2007, 2:47pm UTC](https://www.ruby-forum.com/t/radiant-config/84024/10 "2007-02-01T14:47:21Z")

</div>

It should not, presuming they will keep around the 1.1.6 gem. If you  
are  
concerned, you could run `rake rails:freeze:edge TAG=rel_1-1-6` inside  
your  
Radiant directory. That will keep the 1.1.6 version associated with  
your  
instance of Radiant.

Sean
