Macrobyte Resources Weblog 2.0
Internet groupware development platform
List Your Weblog's Archives by Month




 
Subject List Your Weblog's Archives by Month
Posted 3/6/2006; 7:44 PM by Seth Dillingham
Last Modified 3/6/2006; 7:48 PM by Seth Dillingham
In Response To (#Top of Thread.)
Label None. Read 605
<Previous Next> Thread: Edit Reply

On 2/27/06, Mike Black said:

>In my page (http://www.mindspill.org) in the main left hand navigation
>I've got a box "Archive" that's what I meant with the monthly archive list.

As I'd been planning a macro to do this anyway (for a long time, now), Mike's request gave me the push I needed to finally 'get it done'.

The macro you need is <!--#weblog.calendar.listMonths--> The links produced by this macro link to the per-month archives in your weblog, and could be used instead of the full weblog calendar.

It's very flexible. By default (that is, with no attributes at all, so it looks like is shown above) it lists all of the months in which the weblog has archives. (The output is an HTML list.) The following is an example of the output (note that it's going to look weird in plain-text email, so please go to the site to see it.)

Being 'very flexible' means the macro accepts a lot of attributes. I can't write the docs right now, but here's a list of those attributes it supports:

  • channel
  • format -- date formatting *
  • lang -- date formatting *
  • timezoneName -- date formatting *
  • preText ( <ul>)
  • postText (</ul>)
  • noValueText (empty string)
  • preWrapper ( <li>)
  • postWrapper (</li>)
  • separator
  • outputFormat
  • descending -- should the list go up or down, chronologically?
  • links -- should the output include links?
  • limit -- restrict the output to the last /limit/ items

* These three are for formatting the dates that are output by the macro, like "March, 2006". See the docs on formatting dates in Conversant.

This is a brand-new macro. If you find something difficult, or can't figure out how to do something, or run into a bug... please report it here on the beta site!

Seth

<Previous Next> Thread: Edit Reply
ENCLOSURES

None.
REPLIES

Re: List Your Weblog's Archives by Month
3/6/2006 by Seth Dillingham
On 3/6/06, Seth Dillingham said: >The following is an example of the output

RE: List Your Weblog's Archives by Month
3/7/2006 by Mike Black
Hi Seth, This is sooo what I wanted. Great, I like it. I just spent 3 seconds

Re: List Your Weblog's Archives by Month
12/28/2006 by Prof. Tom Wilson
Is it possible for me to post a message on my blog without it going to all

RE: List Your Weblog's Archives by Month
2/21/2007 by Clark Venable
The weblog.calendar.listMonths macro seems to want the attribute for post text



 
© 2002 Macrobyte Resources. All rights reserved.