MTQuickLinks is a Movable Type plugin for setting up abbreviations for external links. Somehow I ended up providing [MTPatch3_15|some fixes] for Movable Type 3.15 that also helped with that plugin. However, those fixes (while required) are not sufficient. Internally it has the same slash/backslash problem for local links, so the following change needs to be made around line 137:

$tmpl->param(script_url 
   => File::Spec->catdir($apppath,"plugins","QuickLink","mt-quicklink.cgi"));

to

my $url = File::Spec->catdir($apppath,"plugins","QuickLink","mt-quicklink.cgi");
$url =~ s|\\|/|g;
$tmpl->param(script_url        => $url);

In terms of other implementation, I’m not sure I like how this one is structured. It’s not a text filter — it actually modifies the post text on save. I really don’t like that at all. I suspect that it because the author didn’t think people would be willing to put in the container tags in templates or use this plugin as a text filter because it would exclude other text filters, and it also means that the plugin doesn’t have to be dynamic as well as static. However, FilterStack solves the first problem so if I worked on this, I’d change it in to a text filter. At some point I’ll need to learn how to do PHP plugins to solve the latter problem.

Notes:

  • The “Movable Type forum post”:http://www.movabletype.org/support/index.php?act=ST&f=12&t=3919 on this subject.