Macrobyte Resources Weblog 2.0
Internet groupware development platform
Weblog II Beta Site




 
March, 2006
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Jan  Jul

<-- Back One Week



Day Link Icon 3/6/2006

List Your Weblog's Archives by Month

(by Seth Dillingham, @ 6:44 PM)

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

Comments: 20 | Reply | Categories:



 
© 2002 Macrobyte Resources. All rights reserved.