# Mental extension development help

**URL:** <https://www.ruby-forum.com/t/mental-extension-development-help/82791>\
**Category:** Radiant CMS\
**Created:** [January 21, 2007, 2:06am UTC](https://www.ruby-forum.com/t/mental-extension-development-help/82791 "2007-01-21T02:06:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 21, 2007, 2:06am UTC](https://www.ruby-forum.com/t/mental-extension-development-help/82791/1 "2007-01-21T02:06:55Z")

</div>

I’m trying to port the rss behavior to an extension for use in mental.  
I can’t find anything talking about how to develop extensions, so I’m  
baseing this off looking at hello\_tag example.  
I’ve created two files:  
rss\_reader\_extension.rb that looks like this:  
[http://pastie.caboo.se/34525](http://pastie.caboo.se/34525)

and lib/rss\_reader.lib:  
[http://pastie.caboo.se/34529](http://pastie.caboo.se/34529)

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 21, 2007, 2:07am UTC](https://www.ruby-forum.com/t/mental-extension-development-help/82791/2 "2007-01-21T02:07:55Z")

</div>

Sorry, accidentally hit send (I’ve gone brain dead looking for stuff  
on extensions).

Anyway, this is obviously not working, but I have no idea where to go  
from here.  
Can anyone jump in and help here? I’m not sure what has changed from  
the old system to the new, so I have no idea what I need to change.

Thanks,  
BJ Clark

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 21, 2007, 5:52am UTC](https://www.ruby-forum.com/t/mental-extension-development-help/82791/3 "2007-01-21T05:52:11Z")

</div>

When I created an extension I followed this blog post:  
[http://radiantcms.org/blog/2006/11/24/how-to-write-time-sensitive-or-expiring-content/](http://radiantcms.org/blog/2006/11/24/how-to-write-time-sensitive-or-expiring-content/)

and it worked for me.

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 21, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/mental-extension-development-help/82791/4 "2007-01-21T22:42:11Z")

</div>

Loren,  
I was in IRC but you weren’t responding. Please shoot me an email at  
bjclark [at] scidept dot com.

Michael - thanks for the link.

BJ

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 22, 2007, 2:18am UTC](https://www.ruby-forum.com/t/mental-extension-development-help/82791/5 "2007-01-22T02:18:36Z")

</div>

> I’m trying to port the rss behavior to an extension for use in mental.  
> I can’t find anything talking about how to develop extensions, so I’m  
> baseing this off looking at hello\_tag example.

What, if anything is happening? Put some print statements into your  
rss\_reader\_extension file to show if it’s being loaded.

Have you put your extensions files under vendor/extensions/rss\_reader ?

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 22, 2007, 2:22am UTC](https://www.ruby-forum.com/t/mental-extension-development-help/82791/6 "2007-01-22T02:22:37Z")

</div>

BJ and I worked through the issues on this over IRC today and cleaned  
everything up into an acceptable port to extension. He’ll be doing  
officially announcing and offering it up on the group today or tomorrow.

On Jan 21, 2007, at 6:11 PM, Daniel S. wrote:

> * * *
> 
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

Loren J.  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![BJ\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc79bd/32.png) [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Post date:** [January 21, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/mental-extension-development-help/82791/7 "2007-01-21T18:44:28Z")

</div>

BJ,

If we can meet on IRC today or tomorrow we could maybe work on this  
together. I was planning on porting the RSS behavior this week anyway  
so I can convert one of our sites that needs it but also needs to go  
Mental.

I’ll get on the #radiantcms IRC channel at 2:30 PM MST and hang-out  
there until 5ish. Let me know if you want to setup something for  
tomorrow instead.

Loren
