Earl,

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: http://seancribbs.com/weblog . Here's the code I 
use:

<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 />
</div>
<p class="post-footer">
<span class="readmore">Posted in <r:parent:link /><r:if_content 
part="extended"> | <r:link anchor="extended">Continue 
reading...</r:link></r:if_content></span>
<span class="date updated" title="<r:rfc1182_date />"><r:date 
format="%a, %b %d, '%y" /></span>
</p>
</div>
  </r:children:each>
</r:aggregate>

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

Cheers,

Sean

Earl Chew wrote:
> 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 all
> the subtrees (say Post 1.1 and Post 2.1).
>
> Browsing to "Email Server" would only show me those articles collected
> therein.
>
> I get a little strangeness, and probably more to come, implementing as shown.
>
> In particular, I wonder what r:children in "Server Maintenance" will do when
> confronted with each of the sub-archives (ie "Web Server" and "Email Server").
>
> 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
>  
> Earl
>
>
>        
> ---------------------------------
> Moody friends. Drama queens. Your life? Nope! - their life, your story.
>  Play Sims Stories at Yahoo! Games. 
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
>   

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to