What I want to do is this: I have my entries set up so that they have 2 categories- 1 for the photo I include, and 1 for the text. So it appears like I have a separate entry for each, but it's really one (this way, I can display everything at once, or just one part, etc.) I would like the 'text' part of the archives to appear as a calendar listing, and the 'photo' part is by category. The photo part works great- I used this code to get that done:
CODE
<MTArchiveList archive_type="Category">
<MTFilterCategories include="photo categories here">
<a href="<$MTArchiveLink archive_type="Category">" onMouseover="window.status='view photos in this category'; return true" onMouseout="window.status=''; return true" title="view photos in this category"><$MTCategoryLabel$></a><br>
<$MTCategoryCount$> photos<br><br>
<MTEntries lastn="1">
<div class="thumbs"><a href="<$MTArchiveLink archive_type="Category">" onMouseover="window.status='view photos in this category'; return true" onMouseout="window.status=''; return true" title="view photos in this category"><$MTEntryExcerpt$></a></div>
</MTEntries>
</MTFilterCategories>
</MTArchiveList>
<MTFilterCategories include="photo categories here">
<a href="<$MTArchiveLink archive_type="Category">" onMouseover="window.status='view photos in this category'; return true" onMouseout="window.status=''; return true" title="view photos in this category"><$MTCategoryLabel$></a><br>
<$MTCategoryCount$> photos<br><br>
<MTEntries lastn="1">
<div class="thumbs"><a href="<$MTArchiveLink archive_type="Category">" onMouseover="window.status='view photos in this category'; return true" onMouseout="window.status=''; return true" title="view photos in this category"><$MTEntryExcerpt$></a></div>
</MTEntries>
</MTFilterCategories>
</MTArchiveList>
So, I had previously used the ArchiveYear plugin to create yearly calendar archives for the entire site, regardless of category affiliation. But now I have a somewhat complicated issue...
If the entry has no entrybody (which means it has no text entry, just a photo) it doesn't display a link in the calendars. That works great:
CODE
<MTCalendarIfEntries>
<MTEntries lastn="1">
<MTIfNotEmpty var="EntryBody">
<a href="<$MTEntryLink archive_type="Daily"$>" onMouseover="window.status='read entries for this day'; return true" onMouseout="window.status=''; return true" title="read entries for this day"><$MTCalendarDay$></A>
</MTIfNotEmpty>
<MTIfEmpty var="EntryBody">
<$MTCalendarDay$>
</MTIfEmpty>
</MTEntries>
</MTCalendarIfEntries>
<MTEntries lastn="1">
<MTIfNotEmpty var="EntryBody">
<a href="<$MTEntryLink archive_type="Daily"$>" onMouseover="window.status='read entries for this day'; return true" onMouseout="window.status=''; return true" title="read entries for this day"><$MTCalendarDay$></A>
</MTIfNotEmpty>
<MTIfEmpty var="EntryBody">
<$MTCalendarDay$>
</MTIfEmpty>
</MTEntries>
</MTCalendarIfEntries>
But that only tells MT to not show a link and just show the numbers. It's still showing calendars for months with entries with no entry body. I wasn't sure how to get rid of that. Here's the page I'm working with:
http://www.muted.com/history/
So January through August should really just not be showing anything. The links aren't there, which is good. But I'd rather not show those empty months and just have September 2003 - January 2004.
So I guess my question is: is it possible to do this with MTArchiveYear? I don't think there is...because the tag doesn't work like MTArchiveList where you can specify an archive_type. So is there a way to do this using just a regular MTCalendar setup specific to the secondary categories? Maybe using MTArchiveList and MTFilterCategories like I did for the photo setup? I've played around with some different things, but haven't gotten anywhere. I can't get rid of the empty months.
Thanks for reading this far