# \<r:parent\> doesnt' work with mine

**URL:** <https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999>\
**Category:** Radiant CMS\
**Created:** [November 23, 2006, 9:50am UTC](https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999 "2006-11-23T09:50:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [November 23, 2006, 9:50am UTC](https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999/1 "2006-11-23T09:50:55Z")

</div>

hi guys,

I tried the \<r:parent\> radius tag in my project but it failed and gives  
a message “undefined tag ‘parent’”.

i have added whatever listed in the changeset from this link  
[http://dev.radiantcms.org/radiant/changeset/162](http://dev.radiantcms.org/radiant/changeset/162)

any help or suggestions.

rgds  
john aneston

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [November 23, 2006, 3:40pm UTC](https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999/2 "2006-11-23T15:40:07Z")

</div>

Do the tests pass? What’s your template code look like?

Jesse

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [November 28, 2006, 6:41pm UTC](https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999/3 "2006-11-28T18:41:50Z")

</div>

Hi John,

I had the same problem. I tried to update my page\_context.rb manually  
and  
it didn’t work. It was only when I simply replaced my page\_context.rb  
with  
the one posted at the radiant trunk that I got it right.

[http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page\_context.rb](http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page_context.rb)

Jose.

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [November 29, 2006, 5:49am UTC](https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999/4 "2006-11-29T05:49:58Z")

</div>

Jose Jose wrote:

> Hi John,
> 
> I had the same problem. I tried to update my page\_context.rb manually  
> and  
> it didn’t work. It was only when I simply replaced my page\_context.rb  
> with  
> the one posted at the radiant trunk that I got it right.
> 
> [http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page\_context.rb](http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/page_context.rb)
> 
> Jose.

Thanks Jose, for the tips. Now it works with mine too after replacing  
the file, and now stuck up with the contact form in radiant. i dont know  
how to configure the mailer behavior. Any help…

rgds  
john aneston

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [December 6, 2006, 1:47pm UTC](https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999/5 "2006-12-06T13:47:26Z")

</div>

Hi John,

I don’t have the mailer working. Can’t figure it out yet. What I’ve done  
is 1) Installesd php form generator [http://phpformgen.sourceforge.net/](http://phpformgen.sourceforge.net/)  
2) Generated my contact form.  
3) Embedded the html form on a Radiant page.

I’ll use this solution on the meantime while I get the mailer working.

Jose.

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [December 7, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999/6 "2006-12-07T14:08:44Z")

</div>

For many people the configuration mailer behavior is just too cryptic  
and obfuscated. It only makes sense to have a page in the admin  
interface to configure the mailer behavior by just filling a form.  
This is a very important (if not the most important) feature to some  
people, I think we as a group should take a stab at it and have the  
project leader merge it into the source tree.

Best.

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [December 7, 2006, 10:42am UTC](https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999/7 "2006-12-07T10:42:45Z")

</div>

Jose Jose wrote:

> Hi John,
> 
> I don’t have the mailer working. Can’t figure it out yet. What I’ve done  
> is 1) Installesd php form generator [http://phpformgen.sourceforge.net/](http://phpformgen.sourceforge.net/)  
> 2) Generated my contact form.  
> 3) Embedded the html form on a Radiant page.
> 
> I’ll use this solution on the meantime while I get the mailer working.
> 
> Jose.

Hi Jose,

mailer\_behavior works fine for me. i dont know about php much, but its  
very simple to work with radiant\_mailer\_behvior, you can find the readme  
file inside plugin folder with which its easy to configure the mailer,  
3 things you have to concentrate.

- body part of contact-us page,
- config part of contact-us page and
- certain changes has to be made with the “…/config/environment.rb”  
or “…/config/environment/production.rb or development.rb”.

on modifying and configuring these 3 things, will enable the feature of  
mailer\_behavior for you website.

cheers  
john aneston

---

<div class="post-metadata">

**Author:** ![john-anes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/22d042/32.png) [@john-anes](https://www.ruby-forum.com/u/john-anes)\
**Post date:** [December 8, 2006, 4:04pm UTC](https://www.ruby-forum.com/t/r-parent-doesnt-work-with-mine/76999/8 "2006-12-08T16:04:53Z")

</div>

John,

I’ve followed the step by step provided recently in the mailing list and  
with the set up as explained I still got server errors; connection  
refused, login errors, and something about Auth. I really don’t have the  
time to focus on the mailer when it’s quicker to embedd a contact form  
that calls a php script that does exactly the same thing.

I agree with you in that the mailer behavior is crucial for any web page  
to compete. If the mailer comes in Radiant’s core it would be a great  
improvement. And I would definitely use Radiant as my default web  
developing tool.

Please know that I offer my non-programming help, perhaps for testing  
and  
documentation.

Jose.
