cheryl

Change Basename Length for existing entries/archives/pages

Vote 0 Votes

I am using a fresh install of MT5.04 and want all existing entries, archives, pages, etc. to have a longer filename - i.e., Basename Length of 250. I know this will break links but that is OK.

I found the EntrySetBasename MT4.x plugin by Brad Choate:
http://plugins.movabletype.org/entrysetbasename/

But nothing for MT5.

Will the EntrySetBasename plugin work with MT5? Is there something else that can be done?

Or, is there a way to export entries from my MT4.23 installation and have the Basename for each entry be 250 instead of what it currently is? I would be willing to delete current entries from the MT5 installation and import the modified MT4 export file.

Thank you!
-Cheryl

Reported on Movable Type 5

2 Replies

| Add a Reply
  • Hi Cheryl,

    I would expect Brad's plugin to work also with v5.x

    Go ahead and try out his plugin on your v5.04 installation.

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

  • Thank you, Mihai. I did give the EntrySetBasename plugin a try with my MT5.04 installation, but the plugin produced the following error and the administrative interface would no longer work until the plugin was deleted from the server:

    Got an error: Error reading /home/username/public_html/cgi-bin/mt5/plugins/EntrySetBasename_v1.0/config.yaml: Syck parser (line 21, column 18): syntax error

    So, instead, I created an index template using the entry export file format, changed the BASENAME field to use EntryTitle (removed all hyphens, dirify-ed, replaced spaces with underscores, and trimmed length to 250). I backed up the blog entries (for safe keeping), published the template to create the output file (which was an export of all published entries - it did not include unpublished entries), deleted all entries from the blog, and then imported the output file.

    Worked like a charm!
    -Cheryl

Add a Reply

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

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012