Help - Search - Members - Calendar
Full Version: separate archive listings by year
Movable Type Community Forum > Additional Resources > Tips and Tricks
nita
I have a page that lists links to the individual pages for all of my posts since 1997.

I'd like to figure out someway that I could tell MTArchiveList to list links to entries based on the year they were posted.

Then, for example, I could have a separate list on a year-by-year basis. Any ideas?
kadyellebee
I think that with some playing the Archive Date Header plugin could do what you want for a page listing all of your archives but separated out by date.

But I'm not 100% sure that's what you are looking for!  So post back if that doesn't help smile.gif

Kristine
nita
Unfortunately, since my actual archive pages are individual archives, this plug in is a no-go:
QUOTE
If you use monthly archives, the contents of this container will only be printed when a new year starts.

If you use weekly archives, the contents of this container will only be printed when a new month starts.

If you use another sort of archive, the contents of this tag won’t be printed at all.


Also, what I wanted was to filter the archive LISTING--that is, the MT generated list of links to the individual entries themselves.

I played some with categories, but it's cumbersome because I already have categories in my posts. And adding a secondary category to 600 something posts and then going into a separate screen for every new post to add that secondary category? Ugh.
girlie
Do you want one page per year, listing the individual links for posts made in that year?

Just trying to get a feel for exactly what you want, so we can determine if it's possible or not.
nita
Yup. So, the 1999 (for example) archive index would be

01/01/1999 - Happy New Year!
02/14/1999 - VD Day
03/17/1999 - I'm Green with the Irish


The 1999 archive index would only list links to entries from 1999 with (for example) the title linked to the individual entry itself.
kadyellebee
Hmmm.  There's definitely not a predefined archive template to work with this.  If we had yearly archives as an option, you could use the date-based archive template, but we don't.  

I think you'd need to use new Index Templates and create each year.  But I'm not positive how to filter out just that year.  With php, I could do it, but with just MT tags, I'm not so sure.  Maybe Girlie has another idea smile.gif

Kristine
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.