# R:aggregation and monthly archives

**URL:** <https://www.ruby-forum.com/t/r-aggregation-and-monthly-archives/144791>\
**Category:** Radiant CMS\
**Created:** [August 2, 2008, 3:16am UTC](https://www.ruby-forum.com/t/r-aggregation-and-monthly-archives/144791 "2008-08-02T03:16:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubella](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/6a8cbe/32.png) [@rubella](https://www.ruby-forum.com/u/rubella)\
**Post date:** [August 2, 2008, 3:16am UTC](https://www.ruby-forum.com/t/r-aggregation-and-monthly-archives/144791/1 "2008-08-02T03:16:29Z")

</div>

Hi All,

Ie$B!Ge(Bve got three archives that Ie$B!Ge(Bm aggregating on a parent  
page using r:aggregation. I want to make an aggregate monthly archive  
of all child posts for the sidebar. On the archive pages I can list  
articles and add per-month headers which link to a monthly archive. On  
the parent r:aggregate page I can aggregate all the child archive  
articles and add per-day headers, but the same per-month header code  
doesne$B!Ge(Bt work. If I try to make the parent page into an archive  
r:aggregate stops working. Adding a monthly archive to the parent page  
then trying to access it via /monthly-archive or a date-based url  
gives 404s.

Is it possible to get per-month aggregate archives of child archives?  
or to fake them somehow?

The code Ie$B!Ge(Bm using in the archive pages sidebar is:  
[http://www.lion-ah.com/ja/blog/photos](http://www.lion-ah.com/ja/blog/photos)

\<r:find url=“/ja/blog/news/”\>\<r:children:each limit=“5” order=“desc”  
by=“published\_at”\>

### "\>
1. 

This gives a month header that links to the monthly archive, followed  
by each article that month.

Code that works on the r:aggregate parent page sidebar:  
[http://www.lion-ah.com/ja/blog](http://www.lion-ah.com/ja/blog)

## e$B:G6a$N%V%m%0e(B
 

### 
1. newsarticlesphotos entry"\>e$B%K%e!\<%9e(B[e$B5-;ve(B](https://www.ruby-forum.com/ja/blog/articles)[e$B\<L??e(B](https://www.ruby-forum.com/ja/blog/photos)e$B!!e(B

This gives aggregate articles from child archives, with unlinked per-  
day headers (and category titles).

Any idea how Ie$B!Ge(Bd make an aggregate monthly archive of child  
archive articles, then generate per-month links to it? eg

All articles published in:  
June 2008  
July 2008  
August 2008

Thanks in advance

peace - oli

PS Sean you should have answered anyhow - irclogger was covering for  
me 😉
