# If\_parent

**URL:** <https://www.ruby-forum.com/t/if-parent/80745>\
**Category:** Radiant CMS\
**Created:** [December 30, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/if-parent/80745 "2006-12-30T22:31:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joannou\_Ng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@Joannou\_Ng](https://www.ruby-forum.com/u/Joannou_Ng)\
**Post date:** [December 30, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/if-parent/80745/1 "2006-12-30T22:31:20Z")

</div>

Hi folks,

Doesn’t look like if\_parent is in 0.5.2. For a production site, is it  
a better idea to run trunk, or copy the if\_parent code from trunk to  
my page\_context.rb?

Cheers, Joannou.

Beer is an improvement on water itself. - Grant J.

---

<div class="post-metadata">

**Author:** ![Joannou\_Ng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@Joannou\_Ng](https://www.ruby-forum.com/u/Joannou_Ng)\
**Post date:** [December 30, 2006, 11:27pm UTC](https://www.ruby-forum.com/t/if-parent/80745/2 "2006-12-30T23:27:38Z")

</div>

Joannou,

It is up to you which version to run. We are running the mental branch  
on  
our production site and are quite happy with it. If you do use 0.5.2,  
you  
will need to put in the code for the if\_parent tag, either directly in  
page\_context.rb, or in a plugin as described in the blog post, “How-To:  
Create Global Tags in a Plugin”.

Cheers,  
Sean C.  
[seancribbs.com](http://seancribbs.com)
