Log
Moving to Moveable Type
So I’ve finally worked out the final kinks to move to Moveable Type, which should happen over the next week. I figured out the mySQL problem, which turned out to be a non-problem, and then I figured out a way to convert from Greymatter without breaking links, which turned out to be a little more complicated. GM uses eight digit filenames, while MT uses only six digits.
There’s a solution posted on the Moveable Type support forums, but it only fixes the anchor links, so I finally found all the places (I think) that need to be fixed. According to the support forum fix, there’s a line in lib/MT/Template/Context.pm that says: $args && $args->{pad} ? (sprintf "%06d", $e->;id) : $e->;id; and you change the 6 to an 8, but it only pads out your anchor links, not the filenames.
It seems that to get 8-digit filenames, you have to change it 6 to an 8 in the following locations:
- lib/MT/Util.pm: line 344
- lib/MT/Template/Context.pm: line 626
- lib/MT/Template/Context.pm: line 825
- lib/MT/Template/Context.pm: line 831
- lib/MT/App/CMS.pm: line 2308
I believe that should force MT to use 8 digits for filenames and anything else that pads the entry id with six digits. I just hope that it doesn’t break anything else, but I’ll discover that soon enough.
09/29/02 01:00PM Geekiness
Recently Played on iTunes
-
“Heroin”
The Velvet Underground & Nico
The Velvet Underground
11/17/08 16:26 -
“All Tomorrow's Parties”
The Velvet Underground & Nico
The Velvet Underground
11/17/08 16:20 -
“Run Run Run”
The Velvet Underground & Nico
The Velvet Underground
11/17/08 16:16