I don’t have a solution but I really admire the problem.
|
My Drupal Code ChangesAs promised, the parts of Drupal that I changed to get CP working the way I like it. In
This part just mimics the old MT archive paths of
That gets us whatever the permalink is to the entry. Now when things are imported, all the paths will be the same and Drupal will answer to them as if it were MT. Sneaky. What about TrackBacks? Install the
This line of code is for Drupal4Bloggers, a custom version of Drupal. Something similar works for the stock TrackBack module, so right below it add the following:
Now if you’ve set the mode of the script to 2, for Drupal HEAD (aka 4.5, at the time), then it will insert TrackBacks into that table and you’ll get a nice list of TrackBacks on their own tab, like you should. In
MT also drops non-alphanumeric characters, so I removed this line and its comment and changed this line:
to read
Now there’s the issue of the dates. I added the following code right before the bit where it checks for existing aliases:
The modified versions of both files are attached. You will need to rename the files to Q&AQ: I tried to run the script… I will not answer your questions on how to use it. There’s a nice post from the author that talks about it and runs over some basics. For everything else, get the original package from him and read the documentation. If you’re still lost, well, I’m sorry. Q: Will you post the changes to the Drupal CVS? The moment I figure out how to get an account, yes. At the moment, that’s not high on my list of to-dos. Q: Can I add the changes to CVS in your name? No, but I lay no claim to the two lines of code. Post it as yourself, I don’t care. 1 New line number after removing the noted lines.
“The whole pleasure of marriage is that it is a perpetual crisis.” — “David Copperfield,” Chesterton on Dickens, 1911 – G. K. Chesterton |
|
Notes to myself – useful resources for working with Drupal:
for people wanting to use the autopath hack and apply it to past entries that you didn't manage to keep historic urls for (like me, basically), there's another fix for the autopath module at this drupal node.
Nice change. Just one comment about your autopath.module…
it is better to alias it to .html instead of .php for a couple of reasons – technically, the alias isn’t php – proxies cache it better
Agreed, generally, but the old pages were
.phppages, so for the sake for forward-compatibility I’m using.phphere, as well.