|
Project Information
Members
Featured
Downloads
Links
|
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 ProvidedThe 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 <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. <mt:JsUrl> <mt:CssUrl> <mt:ImagesUrl> <mt:MediaUrl> Example Use<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Homepage</title> <link type="text/css" rel="stylesheet" href="<mt:CssUrl>/master.css" media="screen, projection"> </head> <body> ... <script type="text/javascript" src="<mt:JsUrl>/jquery.js"></script> </body> </html> |