mt26 - Guide to the New Features in Movable Type 2.6
This document describes the new features in Movable Type 2.6, and the steps for upgrading users to take advantage of these features.
The new Text Formatting options expand the possibilities for formatting
your entries. In older versions of Movable Type, the only option available
was the Convert Line Breaks checkbox, which you could set either off or
on. If on, paragraphs were wrapped in <p>
tags, and line breaks
were converted to <br />
tags.
In Movable Type 2.6, you can now select from a variety of Text Formatting options. Plugin developers can add their own Text Formatting plugins. You can choose a different Text Formatting tool for each entry that you post, if you want. In addition, Text Formatting will be applied when you click ``Preview'' to get a preview of your entry.
To use Text Formatting plugins, you'll need to set up your plugins directory, if you haven't already. Instructions on doing so are in the manual. If you're a new Movable Type user, your distribution will come with a plugins directory.
Brad Choate has written a Text Formatting plugin to implement the functionality in Dean Allen's Textile tool. The Textile plugin is available now at http://www.bradchoate.com/past/mttextile.php.
You can now select a Creative Commons License to apply to your weblog. The appropriate metadata will be added to your weblog pages and your RSS files.
If you are upgrading, follow the steps below to add the Creative Commons tags to your templates. If you are using the default templates and would rather just upgrade those to the new version, you can copy and paste the templates from http://www.movabletype.org/default_templates.shtml.
<head>
section:
<MTBlogIfCCLicense> <$MTCCLicenseRDF$> </MTBlogIfCCLicense>
<MTBlogIfCCLicense> <div class="syndicate"> <a href="<$MTBlogCCLicenseURL$>"><img alt="Creative Commons License" border="0" src="<$MTBlogCCLicenseImage$>" /></a><br /> <MT_TRANS phrase="This weblog is licensed under a"> <a href="<$MTBlogCCLicenseURL$>">Creative Commons License</a>. </div> </MTBlogIfCCLicense>
Or, if you know what you're doing, add the following namespace to the template:
xmlns:cc="http://web.resource.org/cc/"
And add the following markup to the <channel>
element:
<MTBlogIfCCLicense> <cc:license rdf:resource="<$MTBlogCCLicenseURL$>" /> </MTBlogIfCCLicense>
<head>
section:
<MTBlogIfCCLicense> <$MTCCLicenseRDF$> </MTBlogIfCCLicense>
On the New and Edit Entry screens, you can now add a new category without having to go to the Category screen. Select Add new category... from the Primary Category pulldown menu, then type in the new category name. The category will be added to the database and selected automatically.
Version 2.6 integrates Brad Choate's Sanitize plugin, adding an mt.cfg setting for a global default, and a per-weblog setting to override that default. Sanitize is also turned on automatically for the following tags:
In other words, if you are upgrading and you want to make use of Sanitize (and you should, because it will make your site more secure), you don't need to alter your templates. More information about Sanitize is available here.
<MTLink>
TagThe <MTLink>
tag can be used to easily generate links to index
templates or entries (by entry ID).
More information about the <MTLink>
tag is
available here.
The Allow Comments checkbox has been turned into a three-item selection menu: Open, None, or Closed. Open and None are the same options that you had in previous versions of Movable Type. Closed allows you to leave up old comments but turn off new comments by removing the comment form from the page. If you have an old entry where you want to leave the comments up, for example, but don't want to allow new ones, this can be useful.
To set it up, surround the comment posting form in your template with
<MTEntryIfCommentsOpen>
tags. For example:
<MTEntryIfCommentsOpen> <form method="post" ...> ... </form> </MTEntryIfCommentsOpen>
Movable Type's default templates now include an RSD file. RSD stands for Really Simple Discoverability; more information is available at http://archipelago.phrasewise.com/rsd. It provides metadata that allows XML-RPC clients to auto-discover the information needed to post to your weblog (the XML-RPC endpoint and your weblog ID).
If you are upgrading:
<head>
section:
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTBlogURL$>rsd.xml" />
Movable Type now supports the metaWeblog.newMediaObject XML-RPC method for uploading files to your server. This allows you to use a desktop client like Kung-Log to upload a file.
In addition to MySQL, Movable Type 2.6 now supports PostgreSQL and SQLite databases as backends for Movable Type.