Replace movable type 4 monthly to yearly archives

2008 Oct 14
yearly-archives.png

As each day passes, more and more posts are added to our blog sites. I was thinking of what if the archives will reach ten years? Well, I dont have that much number of posts, probably my blog will still survive. What I'm more concerned about is the monthly archives displayed on the sidebar. It will be displaying a very long list of months year by year. There must be some way to arrange them yearly.

I figured, there are already many MT4 bloggers who may have implemented it like Beau and his Advanced Archive Widget. Unfortunately, what i was looking is to display my yearly based archives horizontally as opposite to the one Beau has done. The main reason why i wanted to display my yearly archive horizontally is because there might be not enough room as the years go by since the list is growing sideways.

I have experiemented my version with my blog for hours and ended up displaying the yearly archive using simple methods using lists. Here is my version below:





What to do?
  1. Create a Widget and paste the code above, save it as "Yearly Sidebar Archives" or any name you like.
  2. On your Archive Templates, Edit the Entry Listing template
  3. On the Template Options, Create an Archive Mapping of type Yearly
  4. Choose your desired path eg. yyyy/index.html
  5. Specify publishing option as Static
  6. Hit Save and Publish
  7. Navigate back to your Widgets template list at Design->Widgets
  8. Choose which sidebar you wish to place your yearly archives by clicking it. I choose my primary sidebar since i want to replace my monthly archives into yearly archives.
  9. Click on the Archives Widget at the Installed Widgets List
  10. Place an ignore code around your monthly archive code


    <$mt:include widget="Monthly Archives"$>

  11. Insert the following code right below it.

    <$mt:include widget="Yearly Sidebar Archives"$>
  12. Republish your indexes and see the output at your main page.

Tweet this post

Related Entries

Leave a comment


About Me


Alfredo Sanchez is an internet professional focusing on the study search engines behavior in particular. Supports Free Open Source Software and currently develops applications with it using XAMPP.

Recent Entries

Close