# Default content of body and page parts tabs

**URL:** <https://www.ruby-forum.com/t/default-content-of-body-and-page-parts-tabs/199527>\
**Category:** Radiant CMS\
**Created:** [November 23, 2010, 11:54am UTC](https://www.ruby-forum.com/t/default-content-of-body-and-page-parts-tabs/199527 "2010-11-23T11:54:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 23, 2010, 11:54am UTC](https://www.ruby-forum.com/t/default-content-of-body-and-page-parts-tabs/199527/1 "2010-11-23T11:54:32Z")

</div>

Hi,

i am new to Radiant and trying to find out how to set the default  
content for the body and page parts tabs. Is there a way or any  
extensions available to do that in Radiant?  
On the admin backend under Settings/Application there is the  
possibility to set the deafult page parts. But i can’t see any way of  
setting the default content of this parts.

---

<div class="post-metadata">

**Author:** ![Hadi\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@Hadi\_S](https://www.ruby-forum.com/u/Hadi_S)\
**Post date:** [November 23, 2010, 1:28pm UTC](https://www.ruby-forum.com/t/default-content-of-body-and-page-parts-tabs/199527/2 "2010-11-23T13:28:46Z")

</div>

Hadi S. said the following on 11/23/2010 05:53 AM:

> Hi,
> 
> i am new to Radiant and trying to find out how to set the default  
> content for the body and page parts tabs. Is there a way or any  
> extensions available to do that in Radiant?  
> On the admin backend under Settings/Application there is the  
> possibility to set the deafult page parts. But i can’t see any way of  
> setting the default content of this parts.

I can’t see why you would want to do that in each page when you can do  
that in the layout.

---

<div class="post-metadata">

**Author:** ![Hadi\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@Hadi\_S](https://www.ruby-forum.com/u/Hadi_S)\
**Post date:** [November 23, 2010, 2:51pm UTC](https://www.ruby-forum.com/t/default-content-of-body-and-page-parts-tabs/199527/3 "2010-11-23T14:51:49Z")

</div>

You are absolutely right. Using layouts/snippets for this is a much  
simpler solution.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Hadi\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@Hadi\_S](https://www.ruby-forum.com/u/Hadi_S)\
**Post date:** [November 25, 2010, 11:05am UTC](https://www.ruby-forum.com/t/default-content-of-body-and-page-parts-tabs/199527/4 "2010-11-25T11:05:10Z")

</div>

Thanks a lot, that could be very useful for me in the near future,  
good to know about the extension. Will have a look at it.

---

<div class="post-metadata">

**Author:** ![Hadi\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/b5ac83/32.png) [@Hadi\_S](https://www.ruby-forum.com/u/Hadi_S)\
**Post date:** [November 23, 2010, 3:08pm UTC](https://www.ruby-forum.com/t/default-content-of-body-and-page-parts-tabs/199527/5 "2010-11-23T15:08:07Z")

</div>

You can use the PageFactory extension to do that:  
[http://ext.radiantcms.org/extensions/221-page-factory](http://ext.radiantcms.org/extensions/221-page-factory)

This will let you specify both the default set of parts for specific  
types of pages (Body, Extended, Sidebar, &c) as well as the default  
content for each of those.

There’s a walkthrough in the git repo  
([https://github.com/joshfrench/radiant-page\_factory-extension/blob/master/EXAMPLES.md](https://github.com/joshfrench/radiant-page_factory-extension/blob/master/EXAMPLES.md))  
and a screencast  
([http://radiantcms.org/blog/archives/2010/05/03/radiantcasts-episode-11-radiant-page-parts-and-page-factory-extensions/](http://radiantcms.org/blog/archives/2010/05/03/radiantcasts-episode-11-radiant-page-parts-and-page-factory-extensions/))  
to get you started.

I’m also close to releasing version 2.0, which gets rid of the  
PageFactory::Base class and lets you work directly with Page subclasses.  
But it doesn’t add any new features so there’s no reason not to use the  
existing release.

Let me know if you have any questions.  
j
