Forum: Radiant CMS Nested archives

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bbb08090c4f8d7f89d9f474e9d57ba94?d=identicon&s=25 Earl Chew (Guest)
on 2007-06-05 18:19
(Received via mailing list)
I'd like to create a what might be called a nested archive:

+ Server Maintenance <Archive>
++ Web Server <Archive>
++++ Post 1.1
++++ Post 1.2
++ Email Server <Archive>
+++ Post 2.1
+++ Post 2.2

Browsing to "Server Maintenance" would show me the latest articles in
the subtrees (say Post 1.1 and Post 2.1).

Browsing to "Email Server" would only show me those articles collected

I get a little strangeness, and probably more to come, implementing as

In particular, I wonder what r:children in "Server Maintenance" will do
confronted with each of the sub-archives (ie "Web Server" and "Email

Am I better off implementing as:

+ Server Maintenance <Archive>
++ <r:aggregate "Web Server" "Email Server">
 + Web Server <Archive>
 ++ Post 1.1
 ++ Post 1.2
 + Email Server <Archive>
 + Post 2.1
 + Post 2.2


Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games.
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-06-08 22:34
(Received via mailing list)

Sorry I didn't get to your message sooner.  Figures that the week John
goes without email, we get flooded with messages to the list!

The default behavior of the Archive page is to organize its child pages
in a date-based URL fashion.  It seems from your setup that the publish
date of the Web Server and Email Server pages is not significant, but
the publish date of their children are.  Since you're already using the
aggregation extension, you'd want a setup like this:

+ Server Maintenance (do your r:aggregate tag in this page)
++ Web Server <Archive>
+++ Post 1.1
+++ Post 1.2
++ Email Server <Archive>
+++ Post 2.1
+++ Post 2.2

The key to showing all the latest articles of all the subtrees is to
order the aggregated children in descending order by publish date:

<r:children:each order="desc" by="published_at" limit="10">...

I do that on my weblog: . Here's the code I

<r:aggregate urls="/tech; /music; /philosophy">
  <r:children:each order="desc" limit="6">

<div class="hentry">
<h1 class="entry-title"><r:title /></h1>
<div class="entry-content">
<r:content />
<p class="post-footer">
<span class="readmore">Posted in <r:parent:link /><r:if_content
part="extended"> | <r:link anchor="extended">Continue
<span class="date updated" title="<r:rfc1182_date />"><r:date
format="%a, %b %d, '%y" /></span>

Notice that /weblog is not even the parent of the primary sections;
r:aggregate makes no such requirement.


This topic is locked and can not be replied to.