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> </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