August 21, 2003

To beat a dead horse.

In trying to improve this Movable Type implementation, I followed the spirit of these zlog instructions to implement YEAR/MO/name.html urls.

I wound up adding:
<$MTArchiveDate format="%Y/%m"$>/<MTIfEmpty var="EntryKeywords"><$MTEntryTitle dirify="1"$><MTIfNotEmpty var="EntryKeywords"><$MTEntryKeywords$>.html
to the individual archive template, while ignoring zlog's recommended php-specific directives. Seems the IfEmpty plugin syntax has changed somewhat now it's built-in; the close tags weren't parsed.

The result is less than perfect; I'm copying over the YEAR_MO.html summaries to YEAR/MO/index.html after rebuilds manually via a script to make a browseable directory structure, the use of underline instead of hyphen and stripping of all other punctuation from entry filenames irritates, and I still have to do something about the default 'Convert Line Breaks' setting on that Text Formatting popup when editing.

But it's an improvement over the default numerical entry. I no longer long to use the Dead Horse software that Danny wrote for Oblomovka, which achieves the same visible structure using rather more url rewrites.

Posted by Lloyd Wood at August 21, 2003 01:54 AM
Post a comment

Remember personal info?

Lloyd Wood (
Powered by Movable Type