Calendar stuff

I added the navigation to the calendar: See the little ‘arrows’ in the calendar?

Note: clicking that arrow actually brings you to the ‘Monthly archive’ and as you can see, I had to add the sidebar to that template.

The following changes were made:

  • Removed the ‘container’ div in the Date based archive template. Replaced it with ‘contents’ (see your main template!).
  • Added the sidebar ‘links’ to the template. Additionally removed everything I didn’t deem valuable.
  • Added the following to the calendar object:
    <caption class="calendarhead"><MTArchivePrevious><a href="<$MTArchiveLink$>" 
    title="<$MTArchiveTitle$>">«</a></MTArchivePrevious>
    <a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a>
    <MTArchiveNext><a href="<$MTArchiveLink$>"
    title="<$MTArchiveTitle$>">»</a></MTArchiveNext></caption>
  • Don’t forget to replace <MTCalendar> with <MTCalendar month=”this”>. Otherwise you end up with weird things.
  • Save and rebuild.
  • Open up your main index page.
  • Enclose the table with the macro <MTArchiveList archive_type=”Monthly” lastn=”1″>
  • Replace the caption with the code as described above.

Have fun

This entry was posted in Moveable-Types. Bookmark the permalink.