# Passing attributes to child radiant elements

**URL:** <https://www.ruby-forum.com/t/passing-attributes-to-child-radiant-elements/64823>\
**Category:** Radiant CMS\
**Created:** [August 15, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/passing-attributes-to-child-radiant-elements/64823 "2006-08-15T14:19:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsmorris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@jsmorris](https://www.ruby-forum.com/u/jsmorris)\
**Post date:** [August 15, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/passing-attributes-to-child-radiant-elements/64823/1 "2006-08-15T14:19:31Z")

</div>

If I have defined new radius tags in a custom behvaior and then  
specify them on a page like this

\<r:tag1 category=“test”\>  
\<r:tag1:a /\>  
\<r:tag1:b /\>  
\</r:tag1\>

What is the best way to give ‘tag1:a’ and ‘tag1:b’ the value of the  
attribute category on the parent element, tag1 in the code so that I  
can use the value “test” in the render of tag1:a and tag1:b?

---

<div class="post-metadata">

**Author:** ![jsmorris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@jsmorris](https://www.ruby-forum.com/u/jsmorris)\
**Post date:** [August 15, 2006, 2:19pm UTC](https://www.ruby-forum.com/t/passing-attributes-to-child-radiant-elements/64823/2 "2006-08-15T14:19:38Z")

</div>

On 14/08/2006, at 2:13 PM, jsmorris wrote:

> can use the value “test” in the render of tag1:a and tag1:b?  
> Have you had a look at how the navigation tag works? I think it does  
> something similar to what you want…

Bodhi
