# Adding Options to my Extension

**URL:** <https://www.ruby-forum.com/t/adding-options-to-my-extension/129139>\
**Category:** Radiant CMS\
**Created:** [February 14, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/adding-options-to-my-extension/129139 "2008-02-14T19:48:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [February 14, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/adding-options-to-my-extension/129139/1 "2008-02-14T19:48:38Z")

</div>

What’s the preferred way to add options to an extension. I want to let  
the developer configure things like path locations so that their choices  
are loaded at startup (and then used by my extension).

-Chris

---

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [February 14, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/adding-options-to-my-extension/129139/2 "2008-02-14T19:57:31Z")

</div>

Chris,

I like to use Radiant::Config. So if my extension was named Foo, I  
might do something like this:

Radiant::Config[“foo.file\_path”] = “/some/path/to/somewhere”  
Radiant::Config[“foo.download\_enabled?”] = true

Sean
