jdshipengrover
Jul 9 2008, 09:10 AM
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
Jul 11 2008, 07:26 AM
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
Jul 11 2008, 11:45 AM
I think you need MtArchiveDateHeader in the mt-gizmo plugin see
http://www.darrenkenny.co.uk/archives.html for an example of output
summitmn
Jul 11 2008, 02:28 PM
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
Jul 11 2008, 02:41 PM
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>
</MTArchiveList>
see
http://www.movabletype.org/documentation/a...te-formats.html for the various formats