Ugh… Gallery link refactoring.

May 12th, 2008 by Chris

I discovered today that we’ve somehow gotten off by a month on our Nathan albums in the Gallery. We, of course, managed this months ago (in like the 4th month). Of course, we should be in Nate’s 12th month now… not the 11th (as was previously in place). Age is a zero-based numbering scheme but the cardinal numbers associated with age are one-based. You’re immediately in your first year, which ends by turning one year old. So all of this geekiness aside, I fixed all of the albums and the links in the blog going back all the way to last summer. Unfortunately, this is a complete manual process.

The thumbnails displayed in the blog are interestingly enough permalinks, so the images are still visible after I change they’re albums. The links to the image pages in the gallery are not… they are ‘meaningful links’ like “Nathan/5th+Month/”. Unfortunately, this means that they break when the album hierarchy changes. Bleh.

I’ll probably look into changing this because this doesn’t really scale well into the future. I foresee all of Nate’s first year albums being organized into a new album when we break into his second year in a few weeks. This will require me to manually edit all of the links again. Bleh^2. I think I better figure out something better by then.

Leave a Reply