Not a developer? Go to MovableType.com

Plugin and Theme Directory

Asset Mover v1.0

By Dan Wolfgang
Posted February 20, 2013, in Assets, Files, Uploading.

Details

The Asset Mover plugin for Movable Type and Melody allows you to move a file-based asset to a different location. For example, you may want to move http://site.com/blog/file.jpg to http://site.com/blog/assets/file.jpg.

Installation

To install this plugin follow the instructions found here:

http://tinyurl.com/easy-plugin-install

Use

The Asset Mover can be used at the blog level; visit Manage > Assets to use it. Select the assets you want to move and choose "Move Asset(s)" from the "More actions..." selector then click "Go."

A small window will appear with a text field, giving you a chance to specify the location to move the selected assets to. Specify a path relative to the Blog Site Root. Valid options include:

  • folder: move the selected assets to a single folder beneath the Blog Site Root.
  • folder/hierarchy/for/assets: move the selected assets to a new location several folders deep, again relative to the Blog Site Root.
  • /: move the selected assets to the Blog Site Root.

Folders will be created as necessary to relocate the selected assets.

Non-file and missing assets will be ignored.

Caveats

Moving an asset to a different location will cause any references to the old location to break!

  • If you're publishing the moved asset with the <mt:AssetURL> tag, for example, the fix for this is easy: simply republish.
  • If you've inserted the moved asset into an entry (or otherwise "hard-coded") the URL, the only solution is to search for the old URL and update it accordingly.

Compatibility

Movable Type versions: 4.3

License

GPL


Back

Dan Wolfgang

Dan is an engineering creative and uses his vast knowledge of the web to solve unique client problems with specialized solutions. Complex or straightforward, his focus is to find the most efficient, functional, elegant, and stable solutions for each project. 10 years in web engineering and 14 more in the print publishing industry give him a special insight to the needs, restrictions, and workflows of content publishers, both traditional and new media. Dan is an active Movable Type community member who has written and contributed to countless plugins including some of the most popular: More Custom Fields, Poll Position, and Asset Image Quality.

Website: http://uinnovations.com
Twitter: @danwolfgang