# Radiant Factory

**URL:** <https://www.ruby-forum.com/t/radiant-factory/121681>\
**Category:** Radiant CMS\
**Created:** [November 29, 2007, 10:32pm UTC](https://www.ruby-forum.com/t/radiant-factory/121681 "2007-11-29T22:32:01Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![rpheath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Post date:** [December 4, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/radiant-factory/121681/21 "2007-12-04T14:23:53Z")

</div>

Dan,

> would get replaced with
> 
> !/attachments/monkey.jpg!
> 
> before getting handed off to textile for regular processing.
> 
> Look at:
> 
> [http://soxbox.no-ip.org/radiant/svn/extensions/x\_groggy/lib/groggy\_filter.rb](http://soxbox.no-ip.org/radiant/svn/extensions/x_groggy/lib/groggy_filter.rb)
> 
> It also filters out a bunch of common characters from people cutting/pasting from word, the key bit is a page.attachments.each

This is nice and I would like to try it. Sorry for my dumb question.  
Where exactly should I add this code? I have installed Radiant using  
the 'gem’med version. Do I have to get into  
sub-directories under /usr/lib/ruby/gems ?

## saji

Saji N. Hameed

APEC Climate Center +82 51 668 7470  
National Pension Corporation Busan Building 12F  
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 removed\_email\_address@domain.invalid  
KOREA

---

<div class="post-metadata">

**Author:** ![rpheath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Post date:** [December 5, 2007, 3:36am UTC](https://www.ruby-forum.com/t/radiant-factory/121681/22 "2007-12-05T03:36:31Z")

</div>

> the 'gem’med version. Do I have to get into  
> sub-directories under /usr/lib/ruby/gems ?

No, you’ll need to write and install a radiant extension that includes  
that  
code.

(too busy to go into detail right now - have a look over the extension  
writing  
doco on the radiant site).

Dan.

---

<div class="post-metadata">

**Author:** ![rpheath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/73ab20/32.png) [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Post date:** [December 3, 2007, 7:07am UTC](https://www.ruby-forum.com/t/radiant-factory/121681/23 "2007-12-03T07:07:55Z")

</div>

> ```
> o It would be nice to have a convenient way to access
> images through the Admin interface and to easily 
> (less typing, yet intuitive) 'markup' the images in 
> the associated pages.
> 
> ```

On my site, I’ve written my own text filter that replaces textile  
image references with links to the image, so that:

!image.jpg!

would get replaced with

!/attachments/monkey.jpg!

before getting handed off to textile for regular processing.

Look at:

[http://soxbox.no-ip.org/radiant/svn/extensions/x\_groggy/lib/groggy\_filter.rb](http://soxbox.no-ip.org/radiant/svn/extensions/x_groggy/lib/groggy_filter.rb)

It also filters out a bunch of common characters from people  
cutting/pasting from word, the key bit is a page.attachments.each

Dan.

[Previous page](https://www.ruby-forum.com/t/radiant-factory/121681.md?page=1)
