# Inherited page parts?

**URL:** <https://www.ruby-forum.com/t/inherited-page-parts/141033>\
**Category:** Radiant CMS\
**Created:** [June 20, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/inherited-page-parts/141033 "2008-06-20T23:15:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![squeegy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Post date:** [June 20, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/inherited-page-parts/141033/1 "2008-06-20T23:15:46Z")

</div>

Basically, I want a page to have a sidebar part. Now a child of this  
page has no sidebar part. So on this child page I want to display the  
sidebar of its parent. And if I am 10 levels deep, I want it to look  
back up the tree as far as it needs to to find a part of the name I need  
for display.

I think I could write a custom tag to walk of the tree and ask the pages  
wether it has a part for that. Is that possible?

Can this be done without a custom tag? That would probably be better.

Any ideas?

---

<div class="post-metadata">

**Author:** ![squeegy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Post date:** [June 20, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/inherited-page-parts/141033/2 "2008-06-20T23:19:29Z")

</div>

Alex,

This is standard functionality. Add an inherit=“true” attribute to the  
\<r:content /\> tag.

Sean

---

<div class="post-metadata">

**Author:** ![squeegy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@squeegy](https://www.ruby-forum.com/u/squeegy)\
**Post date:** [June 20, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/inherited-page-parts/141033/3 "2008-06-20T23:39:11Z")

</div>

Sean C. wrote:

> Alex,
> 
> This is standard functionality. Add an inherit=“true” attribute to the  
> \<r:content /\> tag.
> 
> Sean

Heh. Less posting more doc reading. Thanks.
