user-pic

Archive file path adds hyphen and number to author name

Vote 0 Votes

We've set up an author entry listing template for our Movable Type blog using the recommended archive mapping of "author/%-a/%f" from this page: http://www.movabletype.org/documentation/appendices/archive-file-path-specifiers.html

We're having an issue where with some authors, a hyphen and a number gets added to the path, ie: nate-2 or valli-1.

Does anyone know why this might be happening? Though I can deal with this by generating links to this template automatically, it makes for an ugly permanent link. Any insight anyone can offer would be appreciated. Thanks in advance!

Reported on Movable Type 4.2

4 Replies

| Add a Reply
  • To be clear, the problem is with <mt:AuthorBaseName>… <mt:AuthorDisplayName> still displays the unmodified name as it should.

  • Finally found someone else writing about the same problem:

    http://forums.movabletype.org/2008/09/altered-archive-mappings.html

    I'm speculating, based on that post, that this is an issue which has been solved in releases since 4.2. (Can anyone confirm this?) Since it's not practical for my organization to upgrade right now, I found an alternate solution to my particular problem.

    I got out of the <mt:AuthorBasename> business entirely and used <mt:AuthorDisplayName separator="-" lower_case="1"> in my archive mapping rather than the shortcut %-a (or %a) for the authorBasename. This lowercase, hyphen-separated display name seems to work just fine for having attractive, permanent URLs that are not vulnerable to the basename problem.

    • This lowercase, hyphen-separated display name seems to work just fine for having attractive, permanent URLs that are not vulnerable to the basename problem.

      Actually, these aren't permanent at all. What you've done is re-instate the problem that basenames(of all kinds) were initially created to solve: the display name can be edited, even by the users themselves. Once that happens, the entire filename for that person's author archive is going to change rather than just have a number tacked onto it. So, really you've traded one version of the problem for another which is just somewhat less likely. This will also affect pretty redirects for profile pages, and possibly a few other things depending upon your particular usage.

      Your bug was fixed in 4.25. If you can't actually do a proper upgrade to that, I would strongly suggest at least implementing the the changes linked at top there(it's small) instead of leaving this mapping lying around "to be fixed later," which it probably won't.

  • Anyone from 6A care to address this issue? I've discovered that if you ever change the person's display name that MT tacks the "_1" onto the AuthorBasename.

    It would be great if I could easily set the MT author basename path.

Add a Reply

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

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

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

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

694 2908

Last Topic: Blogspot to Movable Type by sdude on Feb 8, 2012

84 291

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

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 565

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