Some Notes I Took On Overriding MTOS

There is some behavior in Movable Type Open Source that I prefer to behave differently. Thankfully, this package is open source, and fairly well designed with customization in mind.

To use a common static uri that is different than admin pages:

  • set target static uri in mt-config.cgi
  • override it in the templates:

    • include/archetype_editor.tmpl
    • include/header.tmpl
    • dialog/header.tmpl
  • Edit /usr/share/perl5/MT/Asset.pm line 83:

: $1 eq 'r'           ? MT->instance->static_path

Also line 62.-

ACTUALLY NO - instead changed lines 1004 and 1009 in /usr/share/perl5/MT/CMS/Asset.pm to %s instead of %r. Hopefully this will move only the asset, not the thumbnail.

http://www.beausmith.com/mt/2008/04/default-upload-destination-in-movable-type.php

By Albert on October 10, 2009 11:41 PM

Categories: