Easily use multiple domains or subdomains to serve site assets in Movable Type.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



by Scott Boms 

Version 1.0.1 - Thursday September 3 2009

MediaURLs is a free plugin for Movable Type 4.x that provides a few 
simple template tags that allow you to easily make use of multiple 
domains or subdomains to host media assets for your site such as css 
and javascript files, images, downloads or more.

The original idea for the plugin came from information on the Yahoo! 
Developer Network's "Performance" site:


Tags Provided
The plugin provides access to four new template tags which can be used 
to separate the distribution of your CSS, JS and image files. The values 
output by these template tags can be configured on the System level in 
Movable Type.

The <mt:MediaUrl> template tag is intended to be a more generic catch-all 
tag that can be used if you only want to serve your media assets from a 
single secondary domain/subdomain.





Example Use

<html lang="en">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link type="text/css" rel="stylesheet" href="<mt:CssUrl>/master.css" media="screen, projection">
  <script type="text/javascript" src="<mt:JsUrl>/jquery.js"></script>

Version History
1.0.1:  Thursday, September 3, 2009 
        Moved repository from Subversion to git and updated the plugin to add a custom icon.

1.0:    Tuesday, March 21, 2009
        Initial release.

Scott Boms 

Copyright and License

Copyright (c) 2009 Scott Boms 
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are

* Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.

* Neither the name "MediaURLs" nor the names of its contributors may
  be used to endorse or promote products derived from this software
  without specific prior written permission.

This software is provided by the copyright holders and contributors "as
is" and any express or implied warranties, including, but not limited
to, the implied warranties of merchantability and fitness for a
particular purpose are disclaimed. In no event shall the copyright owner
or contributors be liable for any direct, indirect, incidental, special,
exemplary, or consequential damages (including, but not limited to,
procurement of substitute goods or services; loss of use, data, or
profits; or business interruption) however caused and on any theory of
liability, whether in contract, strict liability, or tort (including
negligence or otherwise) arising in any way out of the use of this
software, even if advised of the possibility of such damage.