# Simple question about Radiant

**URL:** <https://www.ruby-forum.com/t/simple-question-about-radiant/137365>\
**Category:** Radiant CMS\
**Created:** [May 12, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/simple-question-about-radiant/137365 "2008-05-12T12:47:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![frycu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@frycu](https://www.ruby-forum.com/u/frycu)\
**Post date:** [May 12, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/simple-question-about-radiant/137365/1 "2008-05-12T12:47:54Z")

</div>

hello,  
I have 2 questions about radiant:  
First:  
I have layout with sth like this:

I make a Page and I want to put in body-left for example: Hello word!  
and to body-right: Hello Hello?  
how do this? becouse if I write sth it appears the same text in left and  
right body  
what I should do to make it work?

And the second question:  
I have tree:  
-Home Page  
- About  
- 2008  
- april  
- march  
- january  
- 2007  
- december  
- march  
- july  
- april

how to create a navigation in About page, that it will automaticly  
generate menu with years and months?  
like this:  
2008  
april  
march  
january  
2007  
december  
march  
july  
april  
I have it now like this:

\<r:find url="/about"\>  
\<r:if\_children\>  
\<r:children:each\>

### \<r:link \>\<r:title/\>\</r:link\>
  
\<r:find url="/about/2008"\>  
\<r:if\_children\>

```
      <r:children:each>
       <r:link ><r:title/></r:link>
      </r:children:each>

    </r:if_children>
  </r:find>
</r:children:each>

```

\</r:if\_children\>  
\</r:find\>

but it didn’t work the way as I want:)  
could anyone could help me with this?

---

<div class="post-metadata">

**Author:** ![frycu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@frycu](https://www.ruby-forum.com/u/frycu)\
**Post date:** [May 12, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/simple-question-about-radiant/137365/2 "2008-05-12T14:48:03Z")

</div>

ok, I will put sth like this to Layout:  
\<r:content part=“body-right” /\>  
\<r:content part=“body-left” /\>  
and sth like this to Page for example index  
\<r:if\_content part=“body-right”\>  
h2. Hello word!  
\</r:if\_content\>  
\<r:if\_content part=“body-left”\>  
h2. Hello Frycu!  
\</r:if\_content\>  
and it doesn’t work;/ what is wrong? or I don’t understan this…

> You don’t need that second r:find because you are already scoped to  
> the “about” page, and r:link defaults to the page title

ok but if I don’t put this second r:find it give me only 2008 and 2007  
link without months…

---

<div class="post-metadata">

**Author:** ![frycu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@frycu](https://www.ruby-forum.com/u/frycu)\
**Post date:** [May 12, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/simple-question-about-radiant/137365/3 "2008-05-12T14:56:45Z")

</div>

> > You don’t need that second r:find because you are already scoped to  
> > the “about” page, and r:link defaults to the page title
> 
> ok but if I don’t put this second r:find it give me only 2008 and 2007  
> link without months…

sorry links works fine  
thanks for this, now is only first problem;/

---

<div class="post-metadata">

**Author:** ![frycu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@frycu](https://www.ruby-forum.com/u/frycu)\
**Post date:** [May 12, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/simple-question-about-radiant/137365/4 "2008-05-12T14:23:59Z")

</div>

On May 12, 2008, at 6:47 AM, BartÅ‚omiej Frydrych wrote:

> I make a Page and I want to put in body-left for example: Hello word!  
> and to body-right: Hello Hello?  
> how do this? becouse if I write sth it appears the same text in left  
> and  
> right body  
> what I should do to make it work?

make appropriate page parts. r:content defaults the the “body” part  
\<r:content part=“your\_part\_name\_here” /\>  
There are some details about this here  
[http://wiki.radiantcms.org/Using\_Radiant](http://wiki.radiantcms.org/Using_Radiant)

> ```
> - 2007
> 
> ```
> 
> march  
> \<r:children:each\>  
> \</r:children:each\>  
> \</r:if\_children\>  
> \</r:find\>

You don’t need that second r:find because you are already scoped to  
the “about” page, and r:link defaults to the page title

\<r:find url=“/about”\>  
\<r:if\_children\>  
\<r:children:each\>

### \<r:link /\>
  
\<r:if\_children\>

```
      <r:children:each>
       <r:link />
      </r:children:each>

    </r:if_children>
</r:children:each>

```

\</r:if\_children\>  
\</r:find\>

I haven’t really used Archive pages much, so off the top of my head I  
can’t give you a code sample, but take a look at using Archive and  
ArchiveMonthIndex page types

-Jim

---

<div class="post-metadata">

**Author:** ![frycu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@frycu](https://www.ruby-forum.com/u/frycu)\
**Post date:** [May 13, 2008, 5:47pm UTC](https://www.ruby-forum.com/t/simple-question-about-radiant/137365/5 "2008-05-13T17:47:47Z")

</div>

Jim G. wrote:

> On May 12, 2008, at 8:48 AM, BartÅ‚omiej Frydrych wrote:
> 
> > and it doesn’t work;/ what is wrong? or I don’t understan this…  
> > Do those parts exist?  
> > If you are not familiar with this, all you need to do is click on the  
> > green plus (+) icon on whatever page you want to test and add those  
> > parts. Then save the page and it should work.
> 
> > > You don’t need that second r:find because you are already scoped to  
> > > the “about” page, and r:link defaults to the page title
> > 
> > ok but if I don’t put this second r:find it give me only 2008 and 2007  
> > link without months…
> 
> Do those month pages exist or are you trying to automatically generate  
> that list based on when the child pages have been published? Do you  
> have _any_ child pages of 2008 and  
> 2007?\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Radiant mailing list  
> Post: removed\_email\_address@domain.invalid  
> Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

ok, I do it once more and everything is fine… strange, but I’m happy  
that it works:)  
I have another question, what to do if I want to automaticly post  
content from  
- april  
- march  
- january  
in 2008 page??

---

<div class="post-metadata">

**Author:** ![frycu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@frycu](https://www.ruby-forum.com/u/frycu)\
**Post date:** [May 12, 2008, 3:04pm UTC](https://www.ruby-forum.com/t/simple-question-about-radiant/137365/6 "2008-05-12T15:04:41Z")

</div>

On May 12, 2008, at 8:48 AM, BartÅ‚omiej Frydrych wrote:

> and it doesn’t work;/ what is wrong? or I don’t understan this…  
> Do those parts exist?  
> If you are not familiar with this, all you need to do is click on the  
> green plus (+) icon on whatever page you want to test and add those  
> parts. Then save the page and it should work.

> > You don’t need that second r:find because you are already scoped to  
> > the “about” page, and r:link defaults to the page title
> 
> ok but if I don’t put this second r:find it give me only 2008 and 2007  
> link without months…

Do those month pages exist or are you trying to automatically generate  
that list based on when the child pages have been published? Do you  
have _any_ child pages of 2008 and  
2007?\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
Radiant mailing list  
Post: removed\_email\_address@domain.invalid  
Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)

---

<div class="post-metadata">

**Author:** ![frycu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c4cdca/32.png) [@frycu](https://www.ruby-forum.com/u/frycu)\
**Post date:** [May 19, 2008, 12:37am UTC](https://www.ruby-forum.com/t/simple-question-about-radiant/137365/7 "2008-05-19T00:37:24Z")

</div>

I have had this issue and was finding it on Google, luckly i got answer  
and i signed up to thanks to the support and forum.

Great Help! my problem got solved.

Thanks!

BartÅ‚omiej Frydrych wrote:

> Jim G. wrote:
> 
> > On May 12, 2008, at 8:48 AM, BartÅ‚omiej Frydrych wrote:
> > 
> > > and it doesn’t work;/ what is wrong? or I don’t understan this…  
> > > Do those parts exist?  
> > > If you are not familiar with this, all you need to do is click on the  
> > > green plus (+) icon on whatever page you want to test and add those  
> > > parts. Then save the page and it should work.
> > 
> > > > You don’t need that second r:find because you are already scoped to  
> > > > the “about” page, and r:link defaults to the page title
> > > 
> > > ok but if I don’t put this second r:find it give me only 2008 and 2007  
> > > link without months…
> > 
> > Do those month pages exist or are you trying to automatically generate  
> > that list based on when the child pages have been published? Do you  
> > have _any_ child pages of 2008 and  
> > 2007?\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Radiant mailing list  
> > Post: removed\_email\_address@domain.invalid  
> > Search: [http://radiantcms.org/mailing-list/search/](http://radiantcms.org/mailing-list/search/)  
> > Site: [http://lists.radiantcms.org/mailman/listinfo/radiant](http://lists.radiantcms.org/mailman/listinfo/radiant)
> 
> ok, I do it once more and everything is fine… strange, but I’m happy  
> that it works:)  
> I have another question, what to do if I want to automaticly post  
> content from  
> - april  
> - march  
> - january  
> in 2008 page??
