# Outputting the content of all parts of a page

**URL:** <https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972>\
**Category:** Radiant CMS\
**Created:** [September 17, 2006, 7:35pm UTC](https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972 "2006-09-17T19:35:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f475e1/32.png) [@ralph](https://www.ruby-forum.com/u/ralph)\
**Post date:** [September 17, 2006, 7:35pm UTC](https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972/1 "2006-09-17T19:35:32Z")

</div>

Hello,

is there a way to tell radiant to output all the parts of a page without  
naming them explicitly?

## This would allow me to split large pages into smaller chunks that are easier to handle.

Thanks  
Ralph

---

<div class="post-metadata">

**Author:** ![ralph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f475e1/32.png) [@ralph](https://www.ruby-forum.com/u/ralph)\
**Post date:** [September 18, 2006, 10:39am UTC](https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972/2 "2006-09-18T10:39:47Z")

</div>

Thanks, this method is great! It even allows me to change the order of  
the parts if I need to add one part in between two others.

---

<div class="post-metadata">

**Author:** ![ralph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f475e1/32.png) [@ralph](https://www.ruby-forum.com/u/ralph)\
**Post date:** [September 17, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972/3 "2006-09-17T20:06:16Z")

</div>

When I need to split up bigger pages I just include in the main content  
of  
the page a content tag for each “extra” part I have, this way in the  
layout  
I don’t need to know if the page has multiple parts or just one and I  
can  
still divide the page into smaller chunks.

I use this method a lot when I write pages that contain ruby code that  
has  
to be highlighted. I create a page part like source\_filename that is  
enclosed in \<r:code\> tags and in the main article I do \<r:content  
part=“source\_filename” /\>

2006/9/17, Ralph Von der heyden [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![ralph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f475e1/32.png) [@ralph](https://www.ruby-forum.com/u/ralph)\
**Post date:** [September 18, 2006, 1:15pm UTC](https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972/4 "2006-09-18T13:15:33Z")

</div>

On 18/09/06, Giovanni I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Glad I could help 🙂

Okay, added to the wiki as a Recipe 🙂

–  
Regards,  
Dave

---

<div class="post-metadata">

**Author:** ![ralph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f475e1/32.png) [@ralph](https://www.ruby-forum.com/u/ralph)\
**Post date:** [September 18, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972/5 "2006-09-18T13:25:34Z")

</div>

Well this my second recipe on the wiki, I’m flattered 🙂

2006/9/18, Dave C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![ralph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f475e1/32.png) [@ralph](https://www.ruby-forum.com/u/ralph)\
**Post date:** [September 18, 2006, 12:07pm UTC](https://www.ruby-forum.com/t/outputting-the-content-of-all-parts-of-a-page/68972/6 "2006-09-18T12:07:25Z")

</div>

Glad I could help 🙂

2006/9/18, Ralph Von der heyden [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
