Individual Archive Filenames

By | January 19, 2003

I had to change the Movable Type pattern used to generate the filenames for individual archive files due to a current PhoneBlogger limitation.

PhoneBlogger currently uses boilerplate text for the title and entry text. The link to the audio file is the only unique text. Since the previous filename generator pattern I was using put all posts for one month in the same directory and then used only the title to generate the file name, that meant each new PhoneBlogger post in the same month would overwrite the previous one for that month. Bad. Stupid. Careless.

So, I changed the pattern to prefix the file name with the MovableType entry ID.

< $MTArchiveDate format="%Y/%m"$>/< $MTEntryID>_< $MTEntryTitle dirify="1"$>.html

don’t think there will be too many bad consequences of the change, other than lots of old stories showing up again in my RSS feed and the URLs for my pages now rivaling the Iliad in length.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.