Help - Search - Members - Calendar
Full Version: Yearly Archive In One Page
Movable Type Community Forum > Using Movable Type > Entries and Archives
neomatrix
Hi,
Do you know a plugin that can help me produce the following with MT4?

CODE
<h2>2008<h2>

<ul>
  <li>entry title</li>
  <li>entry title</li>
</ul>

<h2>2007<h2>

<ul>
  <li>entry title</li>
  <li>entry title</li>
</ul>

....
OtherNiceMan
In the past I have used ArchiveDateHeader part of mt-gizmos http://appnel.com/kb/mt-gizmos
neomatrix
Thanks OtherNiceMan,
However I found MT already supports what I want. The plugin you recommended is not needed.

I used the following code in an archive template with Category mapping and it worked:

CODE
<mt:ArchiveList archive_type="Category-Yearly">
<ul>
<MTEntries>
<li><$MTEntryTitle$></li>
</MTEntries>
</ul>
</mt:ArchiveList>


It outputs all entries from a category, grouped by <ul> for every year.

Initially no output was produced, then I learned you have to be publishing a yearly archive in addition (Category Yearly in my case). So I added a Category Yearly mapping and it worked. I wonder why there is such a requirement. Since I don't need separate category-yearly pages, I set its Publishing option to "Do Not Publish".
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-2010 Invision Power Services, Inc.