Radiant Factory

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

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 [email protected]
KOREA

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.

         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

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

Dan.