ballykins

Calendar - Based on Month, not Month & Year

Vote 0 Votes

Hi there,

I'm currently creating a monthly calendar. The following code displays entries on the calendar based on its month and year. So let's say I create an entry, but change the publication date to September 4, 2001. It won't show up in my calendar unless I scroll back to the year 2001. What I would like it do is have that entry show up with all the other entries that were published in September - doesn't matter what year it was published. Is that even possible to do??

Here is my current code:

            <mt:IfArchiveTypeEnabled archive_type="Monthly">

<h3 class="widget-header"><$mt:ArchiveDate format="%B %Y"$></h3>

<div class="calendarContent">
<div class="calendarWeek">
<span>Monday</span>
<span>Tuesday</span>
<span>Wednesday</span>
<span>Thursday</span>
<span>Friday</span>
<span>Saturday</span>
<span class="last-child">Sunday</span>
</div> <!-- end #calendarWeek -->
<mt:Calendar>
<mt:CalendarWeekHeader>
<ul class="days">
</mt:CalendarWeekHeader>
<li>
<mt:CalendarIfEntries>
<mt:Entries lastn="1">
<span><$mt:CalendarDay$></span>

<$mt:EntryDate format="%B%e"$><br />
<a href="<$mt:EntryPermalink$>" alt="<$mt:EntryTitle$>"><$mt:EntryTitle$></a>

</mt:Entries>
</mt:CalendarIfEntries>
<mt:CalendarIfNoEntries>
<span><$mt:CalendarDay$></span>
</mt:CalendarIfNoEntries>
<mt:CalendarIfBlank>&nbsp;</mt:CalendarIfBlank>
</li>
<mt:CalendarWeekFooter>
</ul>
</mt:CalendarWeekFooter>
</mt:Calendar>
</div> <!-- end calendarContent -->
</mt:IfArchiveTypeEnabled>

So my question: is it possible to disregard the year and display all posts published in the same month?

Reported on Movable Type 4.3

Add a Reply

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012