Help - Search - Members - Calendar
Full Version: Weekly Archive Files Vs. Weekly Archive Links
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
playfulkitten
I was having problems with weekly archives not being linked to, and I think I found a bug. This is the original thread.

This is my last post from that thread, with my conclusions:

QUOTE
I created a post for Sunday, December 11, 2005. I hadn't actually created this blog yet at that time, so I had no entries for the week of December 11 thru December 17.

After I created it, I refreshed my index page, and had a link to the week of December 4 thru December 10. Which, of course, does not exist.

So. When there is an entry on a Sunday, and weekly archives are used: The correct weekly archive page in its correct specified location (default, or if you customized it in your archive preferences) is created. However, when creating a list of weekly archive links, it sees the Sunday post as being part of the prior week, and it creates a link to the prior week. So, for creation of weekly archive pages themselves, a week is defined as being from Sunday thru Saturday. For the creation of weekly archive links when looping through with the [MTArchiveList archive_type="Weekly"] container, a week is defined as being from Monday thru Sunday.

I'd say that's not a Good Thing. I'd fix it myself if I had the slightest idea of where to look for it; I'm guessing it's not that hard of a thing to fix if one knows where to look.


So it creates the weekly archive files correctly, but it handles creating the links to them incorrectly when the week involves only a Sunday. (Ideally, since I've seen people here mention their weeks start on Monday rather than Sunday, it'd be good to have an option for it in the config. However, regardless of whether that option is provided at some point, file creation and creation of links to those files should be consistent.)
playfulkitten
I just did a rebuild of the pages I have that use this (my daily to-do), including explicitly saving a Sunday entry where it's the only entry for that week, and I can verify that this problem still exists in 3.31.
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-2008 Invision Power Services, Inc.