Hello there,
I'm working with MT for the first time and have encountered a little problem with displaying a list of monthly archives. I'd like to display a table where every year containing entries is a row, and all months are shown as cells in each row. Months containing entries are shown with their names wrapped in a link to the corresponding monthly archive.
The HTML I'm looking for would be something like:
<table>
<tr>
<th>2009</th>
<td><a href="link_to_jan_2009_archive">J</a></td>
<td>F</td>
<td>M</td>
<td><a href="link_to_apr_2009_archive">A</a></td>
<td>M</td>
<td>J</td>
<td>J</td>
<td><a href="link_to_aug_2009_archive">A</a></td>
<td>S</td>
<td>O</td>
<td>N</td>
<td>D</td>
</tr>
<tr>
<th>2008</th>
...
</tr>
</table>
At the moment I'm getting:
<table>
<tr>
<th>2009</th>
<td><a href="link_to_jan_2009_archive">J</a></td>
<td><a href="link_to_apr_2009_archive">A</a></td>
<td><a href="link_to_aug_2009_archive">A</a></td>
</tr>
<tr>
<th>2008</th>
...
</tr>
</table>
Here's the MT code in question:
<mt:ArchiveList type="Yearly" sort_order="descend">
<mt:ArchiveListHeader><table></mt:ArchiveListHeader>
<tr>
<th><$mt:ArchiveDate format="%Y"$></th>
<mt:ArchiveList type="Monthly" sort_order="ascend">
<td><$mt:ArchiveDate format="%b"$></td>
</mt:ArchiveList>
</tr>
<mt:ArchiveListFooter>
</table>
</mt:ArchiveListFooter>
</mt:ArchiveList>
The code I have so far only produces months containing entries for each year. Could anyone help me to add the other months?
Thanks in advance,
Ross