[Radiant] RSS Feed for archive with sub categories
Sean Cribbs
seancribbs at gmail.com
Fri Mar 16 19:18:14 CDT 2007
If you're using Radiant 0.6 RC2 or the 'mental' branch, you can install
the "aggregation" extension, which will group together all of the child
pages of the pages specified. Here's an example of what I use for the
homepage on my site; a similar technique could be used to create an RSS
feed (I used it to create an Atom feed).
<r:aggregate urls="/tech; /music; /philosophy">
<r:children:each order="desc" limit="6">
<h1><r:title /></h1>
<r:content />
<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"><r:date format="%a, %b %d, '%y" /></span>
</p>
</r:children:each>
</r:aggregate>
Each of the pages specified by URL in the <r:aggregate> tag are of the
"Archive" type.
Cheers,
Sean
seancribbs.com
Sean Johnson wrote:
> I'm trying to use radiant for a site, and the blog section is broken
> into sub-categories (or children). I'm trying to figure out how to
> create an RSS feed that will pull in the posts within these
> categories. Right now it just shows the high-level categories. Any
> suggestions?
>
> Thanks all...
>
> -s
> ------------------------------------------------------------------------
>
> _______________________________________________
> Radiant mailing list
> Post: Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20070316/a811e4f2/attachment.html
More information about the Radiant
mailing list