I’ve just finished implementing nice urls. No more database IDs followed by .php — now it’s date based using yyyy/mm/dd/post_title_based_on_title.
And it wasn’t that hard. In MT 3.11 you just go to your Weblog Config and untick “Use Old-Style Archive Links” under Preferences to get your archives into date mode. Under Archive files you can put < $MTArchiveDate format="%Y/%m/%d"$>/< $MTEntryTitle dirify="1"$>
in your individual entry archive file template (without .php) to strip your archive pages for the file extension. Only problem is, that if you rely on your pages to be parsed as php (as I do, I’m including some sidebar stuff) you need to get .htaccess to parse your extension-less pages as php…which proved a bit more difficult than I’d expected. Dalager helped me out (again), pointing me to ForceType application/x-httpd-php
which — as you might have guessed — simply forces everything to be parsed as php. That did the trick; an .htaccess file with just that line is now dumped into my archives folders.
Previously I didn’t have archive pages for the camblog and the sideblog or rather, they were there but weren’t linked anywhere. I’ve now made an archives link at the top leading to a monthly overview of the three blogs. I’ve used Kalsey’s Archive Date Header Plugin to sort the months by year. I had some trouble getting a single page, residing in my blog directory to display links to all of the blogs but finally came up with — what is pretty hack’ish but works — my new archives page: The different master archive templates just consist of the code to show the links:
<MTArchiveList archive_type="Monthly">
<MTArchiveDateHeader>
<p><b><MTArchiveDate format="%Y"></b></p>
</MTArchiveDateHeader>
<a href="<$MTArchiveLink$>"><MTArchiveDate format="%B"></a>
</MTArchiveList>
An individual template then includes these three files using php and displays the categories of the main blog. Not very elegant but it’ll have to to for now. The links to the monthly pages still include the not-needed-anymore index.php so I still need to get rid of that. And despite not being any good at .htaccess files, I guess I need to do some magic so links to old archive pages don’t break. On the other hand, the world will probably still continue to exist if I don’t.
Oh, and by the way: All pages look like crap. I’m still insisting on styling at the very end of this silly project.
Thanks, it was very interesting