Google Sitemap: Movable Type Template

Syam Kumar June 03, 2005 11:12 PM IST

Create a new index template with the following code:

<?xml version='1.0' encoding='UTF-8'?>
	<urlset xmlns=""
		<MTEntries lastn="1000">
      			<lastmod><$MTEntryModifiedDate format="%Y-%m-%d"$></lastmod>
Screenshot of creating new Movable Type template

Save and build the file.

The above code creates a Google sitemap file containing individual entry links. If you want category archives links and date-based archives links you can add them easily using MT Template tags. Your sitemap file may not be larger than 10MB.

Now you can submit your sitemap to Google through your Sitemaps account or using an HTTP request to the following URL:

There are two more tags you can put inside <url></url>: changefreq (how frequently the content is likely to change) and priority (priority of the page relative to other pages on the site).



Trackback Pings 2

» 國二菜鳥忙裡偷閒 June 4, 2005 07:06 AM

對 Google,你可以化被動為主動。 剛看到一篇報導,說 Google 推出了一項叫做 Google Sitemaps 的服務,只要網站管理員用 Google 定義的格式描述自己的網站並在 Google 上註冊的話,在你網站變動... »

» Anders Jacobsen's blog June 6, 2005 08:56 PM

The two other stabs at creating Sitemap templates for Movable Type don't take into account that you might want to assign different priorities and scan frequencies to your entries (as described here), as well as correcting 'Last Modified date' to includ... »

Comments 1

Mecandes November 22, 2005 03:20 AM

Does it also make sense to add the Google Sitemap ping URL to the Movable Type preferences Publicity/RemoteInterfaces/TrackBack list? Would that work?