Yearly Archives

One feature I find lacking in MT is yearly archives. A yearly archive basically is just a page of twelve calendars - one for each month of the year - see mine in action here with permalinks to the days.

Now there are two ways you can do this, one easier than the other. The first - harder - way to do it is installing Brad Choate's PerlScript Plugin and then follow the steps he has laid out here. I call this the harder method because for every year you are blogging you need to create a new index template and call the template module.

The second method, all you need to do is setup the archiving and MT will do a lot for you - including tidying up you monthly archive list ! You will need the ArchiveYear plugin and you will need to setup the Yearly Archive Templating as shown on that page, obviously customizing it to your MT install.

I have slightly customized the code listed on that page to suit my archiving (Individual). My code is as follows:

Next to make MT automatically tidy up Monthly Archive Listings on January 1st, you will need to install MT-SetVarBlock and MT-Again. Once both are installed, replace your Monthly Archive Listing with

You will need to edit the code above as appropriate to the archive location for you blog. And voila, every new year MT will automatically generate a new yearly archive page and tidy up your monthly listings ! Much better than doing it manually I think !

7 Comments

leesa said:
on Oct 25, 2004 2:04 PM | Reply

Don't know if anyone's told you this but I get all this at the top of the page. Thought you'd like to know:

++++++++++++++++++++++++++++++++++++++++++

Warning: main(): openbasedir restriction in effect. File(/home/arvinds/publichtml/cookiecheck.php) is not within the allowed path(s): (/home/movalog/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/movalog/public_html/me/archives/2004/index.php on line 1

Warning: main(/home/arvinds/publichtml/cookiecheck.php): failed to open stream: Operation not permitted in /home/movalog/publichtml/me/archives/2004/index.php on line 1

Warning: main(): Failed opening '/home/arvinds/publichtml/cookiecheck.php' for inclusion (includepath='.:/usr/lib/php:/usr/local/lib/php') in /home/movalog/public_html/me/archives/2004/index.php on line 1

Arvind Satyanarayan said:
on Oct 25, 2004 4:38 PM | Reply

Ah thanks, fixed!

elly said:
on Jun 20, 2005 4:28 AM | Reply

i'm really disappointed in this plugin, and even more disappointed with sixapart for not writing yearly archiving into the existing software.

as you can see, my layout is very customized on mt MT install, and the calendar based yearly archive layout won't work for what i need. i basically need the equivalent of a movable typing archive tag that would be <MTArchiveList archivetype="Yearly"> and could then have <MTArchiveList archivetype="Monthly"> nested inside it.

i'm bumming.

Pace Arko said:
on Dec 11, 2005 5:33 PM | Reply

I notice that MT-Again is missing along with the entire pyrojection site. This rather annoying because I wanted to use it. Any idea where I can find this code?

piotter said:
on Jan 29, 2006 6:16 AM | Reply

Check out :

this should start you down right path.

Karissa said:
on Mar 6, 2006 4:42 AM | Reply

The link to the "ArchiveYear" plugin is broken--says the file isn't found on the server. Can you help with this? I'd really like to clean up my monthlies since I've been at this for almost three years now and it seems like a ridiculous thing to list all the months...

Thanks!

nickb said:
on Nov 12, 2007 2:34 PM | Reply

I recommend taking a look at www.learningmovabletype.com/a/001165yearly_archives/ to find MT-Again, there is a working link there for it.

Leave a comment

Preview