# Agregating posts

**URL:** <https://www.ruby-forum.com/t/agregating-posts/85301>\
**Category:** Radiant CMS\
**Created:** [February 12, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/agregating-posts/85301 "2007-02-12T14:19:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![poopsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@poopsmith](https://www.ruby-forum.com/u/poopsmith)\
**Post date:** [February 12, 2007, 2:19pm UTC](https://www.ruby-forum.com/t/agregating-posts/85301/1 "2007-02-12T14:19:03Z")

</div>

Hi all,

Let me explain my problem. I have the following structure:

– HOME  
|  
|\_\_ Section 1  
| |\_\_ Article 1 (published\_at: jan/17)  
| |\_\_ Article 2 (published\_at: jan/30)  
| |\_\_ Article N (published\_at: feb/10)  
|  
|\_\_ Section 2  
|\_\_ Article 1 (published\_at: jan/25)  
|\_\_ Article 2 (published\_at: jan/26)  
|\_\_ Article N (published\_at: jan/31)

I want to agregate the posts from both section on a single feed, but I  
want them to be sorted by published date, regardless of wich section  
they belong to.

The final result would be something like this:

- Section 1 : Article N (published\_at: feb/10)
- Section 2 : Article N (published\_at: jan/31)
- Section 1 : Article 2 (published\_at: jan/30)
- Section 2 : Article 2 (published\_at: jan/26)
- Section 2 : Article 1 (published\_at: jan/25)
- Section 1 : Article 1 (published\_at: jan/17)

Can anyone help me?

Gabriel

---

<div class="post-metadata">

**Author:** ![poopsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@poopsmith](https://www.ruby-forum.com/u/poopsmith)\
**Post date:** [February 13, 2007, 12:33am UTC](https://www.ruby-forum.com/t/agregating-posts/85301/2 "2007-02-13T00:33:36Z")

</div>

Gabriel,

I’ve been thinking of doing something like that myself. Here’s what I’m  
thinking in terms of tags:

\<r:aggregate urls="/section-1; /section-2; /section-3"\>  
\<r:children:each limit=“10” order=“desc”\>  
…  
\</r:children:each\>  
\</r:aggregate\>

I don’t have time tonight to work on it, but as soon as I have  
something, I’ll pass it on!

Sean

---

<div class="post-metadata">

**Author:** ![poopsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@poopsmith](https://www.ruby-forum.com/u/poopsmith)\
**Post date:** [February 13, 2007, 1:55am UTC](https://www.ruby-forum.com/t/agregating-posts/85301/3 "2007-02-13T01:55:44Z")

</div>

Hey there!

If you come up with something, lemmie know? I’m interested in it for the  
RSS feeds side of things. 🙂

Andrew

---

<div class="post-metadata">

**Author:** ![poopsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a87d85/32.png) [@poopsmith](https://www.ruby-forum.com/u/poopsmith)\
**Post date:** [February 13, 2007, 3:46am UTC](https://www.ruby-forum.com/t/agregating-posts/85301/4 "2007-02-13T03:46:01Z")

</div>

Ditto.  
We’re going to be building a newsletter mailer application that uses  
Radiant’s content management. I may attempt to make an extension out of  
it, but I haven’t really looked into creating extensions yet.

-jim

On 2/13/2007, “Andrew K.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > something, I’ll pass it on!
> > 
> > > |  
> > > I want to agregate the posts from both section on a single feed, but I
> > > 
> > > - Section 1 : Article 1 (published\_at: jan/17)
> 
> * * *
> 
> 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)

Jim G.  
Creative Director and Owner  
Saturn Flyer, LLC

> **[Saturn Flyer](https://www.saturnflyer.com/)**
>
> Home info

removed\_email\_address@domain.invalid  
571+212+0338
