# How to add a new page attribute?

**URL:** <https://www.ruby-forum.com/t/how-to-add-a-new-page-attribute/81056>\
**Category:** Radiant CMS\
**Created:** [January 3, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/how-to-add-a-new-page-attribute/81056 "2007-01-03T12:40:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [January 3, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/how-to-add-a-new-page-attribute/81056/1 "2007-01-03T12:40:04Z")

</div>

Hello list,

## is it possible to add a new page attribute (Radiant version 0.52) in generally? If so, what’s the best way to achieve that? I want to use the new page attribute called ‘event\_order’ this way:

## \<r:children:each by=“event\_order” \<r:content /\> \</r:children:each\>

Thanks for any help!

Best regards,  
Andreas S.

---

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [January 3, 2007, 2:50pm UTC](https://www.ruby-forum.com/t/how-to-add-a-new-page-attribute/81056/2 "2007-01-03T14:50:19Z")

</div>

Mmm… well, if you don’t mind hacking the Rails code, you can add the  
attribute yourself, but perhaps that’s not the best solution. What  
exactly  
do you need this for?

Sean

---

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [January 4, 2007, 11:06am UTC](https://www.ruby-forum.com/t/how-to-add-a-new-page-attribute/81056/3 "2007-01-04T11:06:16Z")

</div>

Hi Sean,

## i am building a Radiant website for a client. This client has events which are shown in the right column of the website. For example there are ‘Live Event 1’, ‘Live Event 2’. These events should be ordered, so that the next upcoming event is the first event in the right column. For the ordering of the events i use the ‘breadcrumb’ page attribute, for ‘Live Event 1’ it’s ‘020’ and for ‘Live Event 2’ it’s ‘030’. Then i write (to fill the right website column):

## \<r:children:each by=“breadcrumb” \<r:content /\> \</r:children:each\>

So the events are arranged _independently_ from their titles or  
page publishing dates. Now there’s a new important event, say  
‘Very Important Event’, which should be the first event in the  
right column. So i can set a ‘breadcrumb’ value of ‘010’.  
This works, but this usage is not the intended purpose of the  
‘breadcrumb’ attribute … It would be nice to have a free page  
attribute, so that i can use that free attribute for the ordering  
of the events.

Best regards,  
Andreas S.

Sean C. schrieb:
