Help - Search - Members - Calendar
Full Version: Archivelist By Year And Month
Movable Type Community Forum > Using Movable Type > Entries and Archives
jdshipengrover
Hi

I want an archive list of months (got that part), but I want to break it up with large Year headers. For example:

2008
January (10 entries)
February (10 entries)

2007
Jan (10 entries)
Feb (xx entries)
Mar (10 entries)

And so on....

I have about 5 years worth of entries and I can do the monthly archive list and the Year archive list, but can I mix them somehow?

Thanks
JD
summitmn
I've been trying to figure this out for a while myself, but haven't found a solution. I'm trying to do this with MT 4.1. I would be interested to hear from anyone who has figured out how to do this.
OtherNiceMan
I think you need MtArchiveDateHeader in the mt-gizmo plugin see http://www.darrenkenny.co.uk/archives.html for an example of output
summitmn
That's awesome. I think that will do the trick. What is the tag you use to output the year header (i.e., 2008, 2007, 2006) as you loop through each year?
OtherNiceMan
Here is the code I used (mt3, should work in mt4)

CODE
     <MTArchiveList archive_type="Monthly">
  <MTArchiveDateHeader>
   <h1><MTArchiveDate format="%Y"></h1>
  </MTArchiveDateHeader>
  <a href="<$MTArchiveLink$>"><MTArchiveDate format="%B"></a>&nbsp;
</MTArchiveList>


see http://www.movabletype.org/documentation/a...te-formats.html for the various formats
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.