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

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1264 4146

Last Topic: HTML Table query by Parag on Mar 18, 2010

64 196

Last Topic: movable type 5 custom fields by kljx on Mar 17, 2010

1006 3224

Last Topic: When will MT v5.02 be Released? by Jim S. on Mar 18, 2010

483 1984

Last Topic: I have upgraded and I cant login! by Aleksandar on Mar 18, 2010

19 69

Last Topic: Custom main index page by Richard on Feb 7, 2010

11 22

Last Topic: Monthly Calendars Help Needed by joe leblanc on Jan 19, 2010

91 326

Last Topic: SpamLookup Keyword Filter 2.1 not work by b.n09 on Nov 17, 2009

55 206

Last Topic: URL Problems by NoSnaiL on Mar 17, 2010

code.sixapart.com

129 449

Last Topic: Action Stream for Google Buzz by jack lail on Feb 16, 2010