user-pic

Resetting basenames

Vote 0 Votes

I've been blogging with MT for nearly 5 years, starting with MT 2.661. My entry basenames are all short, except for the entries created in MT 4.21 when I set the basename length longer.

My entries, however, are currently published using the entry ID. I'm going to change that to use the basename, but I'd like to reset the basename on all my entries to reflect the longer basename before I do so.

I've found Brad Choate's entrysetbasename plugin, but that's designed to address the change in dirify, not simply to reset the basename.

How do I reset them?

Reported on Movable Type 4.2

5 Replies

| Add a Reply
  • default userpic

    Hi. I don't know if it's possible to do that in a direct way. What happens if you simply republish the previously published entries AFTER changing the blog to use basenames instead of the entry ID?

    If that doesn't work, you might try this. But take a database backup first!!!

    After you change the blog so that it uses the basename rather than the id...

    Use the Export function to export the Entries.

    Delete all the entries using the regular MT Manage Entries page.

    Import the exported files you just created.

    Publish the site.

    The entries should all be created using the basename.

    No guarantee, but I *think* that might work (I've never actually published using the entry ID.)

    HTH

  • I've decided to give up on it on account of me applying a new template set which reset my archive mappings unexpectedly. So, I've got to get some redirects in place ASAP and live with the basenames as is.

    Oh well.

  • OK, I'm not giving up just yet. I reverted to my old templates through a database backup and I'd like to reset all my basenames to the new, longer names if that's possible before I switch back.

    Is this possible? BloggyThingy's idea seems a little extreme and risky.

  • This script may be of use to people wanting to reset their entry basenames.

  • That would have been handy, but I've made the switch and I don't want to add a bunch more redirects.

Add a Reply

Forum Groups

513 1681

Last Topic: Google Analytics by Argentina Elections on May 27, 2009

202 880

Last Topic: Welcome to Movable Type by solle on May 27, 2009

49 204

Last Topic: Odd problem with searches - need help by Phill M on May 24, 2009

11 42

Last Topic: Community Solution -- but where? by webmoney on Mar 16, 2009

25 99

Last Topic: Search enhancement? by Rob on Apr 14, 2009

10 21

Last Topic: Comment Box Missing by rushskeith on Jan 9, 2009

90 318

Last Topic: Getting to the settings on Post Office by Rob G on Apr 2, 2009

code.sixapart.com

104 373

Last Topic: Login/Registration issue by Gaurav Sharma on May 26, 2009

90 307

Last Topic: HTML Printer-Friendly page shrinks by Mikki on May 19, 2009