Weblog Archive

This has been eluding me, so I thought I’d post here for some direction.
Does Radiant CMS do a archive page like this:

http://radiantcms.org/blog/archives/

on its own?

I’m fine with doing something custom, but want to be sure I’m not
overlooking the obvious.

-Ryan

Ryan,

Sort of. Radiant provides the hooks to be able to do it, but you need
certain code in the page. Here’s what that page has (Textile filter):

<r:children:each order=“desc” by=“published_at”><r:header>

h4. <r:date format="%B %Y" />

</r:header>* <r:link />
</r:children:each>

So, it iterates over all of its children, printing out links in
bullets. The <r:header> section only outputs text when the value of its
contents changes (so in this case, when the month or year changes).

Sean

And if you’re interested in pagination, here’s one
possibility:

http://depth-first.com/articles/2007/11/07/paginated-archives-in-radiant-cms-the-power-of-minimal-but-extendable-systems

Cheers,
Rich

— Sean C. [email protected] wrote:

h4. <r:date format=“%B %Y” />

Search: http://radiantcms.org/mailing-list/search/
Site:
http://lists.radiantcms.org/mailman/listinfo/radiant


Richard L. Apodaca

http://depth-first.com Blog
http://metamolecular.com Company