<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Simone Carletti&#039;s Blog &#187; templates</title>
	<atom:link href="http://www.simonecarletti.com/blog/tags/templates/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simonecarletti.com/blog</link>
	<description>Simone Carletti&#039;s personal ramblings on programming, syndication, search engines &#38; marketing.</description>
	<lastBuildDate>Tue, 07 Feb 2012 08:48:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating a blog sitemap with Movable Type</title>
		<link>http://www.simonecarletti.com/blog/2005/10/creating-a-blog-sitemap-with-movable-type/</link>
		<comments>http://www.simonecarletti.com/blog/2005/10/creating-a-blog-sitemap-with-movable-type/#comments</comments>
		<pubDate>Thu, 20 Oct 2005 09:00:29 +0000</pubDate>
		<dc:creator>Simone Carletti</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[movabletype]]></category>
		<category><![CDATA[sitemaps]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://www.simonecarletti.com/blog/2005/10/creating-a-blog-sitemap-with-movable-type/</guid>
		<description><![CDATA[How to create a XML Sitemap template for Movable Type blogging platform.
]]></description>
			<content:encoded><![CDATA[<div class="flash-message warning">
<p><strong>December 30th, 2008</strong>. This post was published long time ago on the Italian version of my blog then moved here after the English blog has been opened. Please note that the following post can contain outdated information and (probably) multiple typos.</p>
</div>
<div class="flash-message info">
<p>This tutorial targets <strong>Movable Type 3.2</strong>. Although the template should work on later versions, you are strongly encouraged to update it according to the specific Movable Type tag syntax provided by your current version.</p>
</div>
<p>Movable Type provides an excellent template engine that can be easily tweaked to create a <a title="About Sitemaps (External link)" href="http://www.sitemaps.org">XML Sitemap</a>.</p>
<p>Basically, you just need to create a new index template and ask Movable Type to rebuild it each time your blog is updated.</p>
<p>The <a href="http://www.sitemaps.org/">Sitemaps Protocol</a> enables you to inform search engine crawlers about URLs on your websites that are available for crawling and helps search engines to find all your pages.</p>
<p>To create a new template enter the Movable Type administration panel.</p>
<p><em>Blog Dashboard</em> &gt; <em>Templates</em> &gt; <em>Indexes</em> and press <em>Create New Index Template</em> to add a new template to your blog configuration.</p>
<p><span id="more-6"></span></p>
<p>Choose an easy to understand Template Name — for example <em>Sitemaps</em> — and an easy to remember file name — for example <em>sitemap.xml</em>.</p>
<p>Configure Movable Type to rebuild the template automatically when rebuilding index templates and fill the Template Body textarea with the following code</p>
<div class="codecolorer-container text default brush: xml" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;urlset xmlns=&quot;http://www.google.com/schemas/sitemap/0.84&quot;&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;$MTBlogURL encode_xml=&quot;1&quot;$&gt;&lt;/loc&gt;<br />
&lt;priority&gt;1.0&lt;/priority&gt;<br />
&lt;changefreq&gt;daily&lt;/changefreq&gt;<br />
&lt;/url&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;strong&gt;http://www.simonecarletti.com/blog/index.xml&lt;/strong&gt;&lt;/loc&gt;<br />
&lt;priority&gt;1.0&lt;/priority&gt;<br />
&lt;changefreq&gt;daily&lt;/changefreq&gt;<br />
&lt;/url&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;strong&gt;http://www.simonecarletti.com/blog/atom.xml&lt;/strong&gt;&lt;/loc&gt;<br />
&lt;priority&gt;1.0&lt;/priority&gt;<br />
&lt;changefreq&gt;daily&lt;/changefreq&gt;<br />
&lt;/url&gt;<br />
&lt;MTEntries lastn=&quot;9999&quot;&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;$MTEntryPermalink encode_xml=&quot;1&quot;$&gt;&lt;/loc&gt;<br />
&lt;lastmod&gt;&lt;$MTEntryModifiedDate utc=&quot;1&quot; format=&quot;%Y-%m-%dT%H:%M:%SZ&quot;$&gt;&lt;/lastmod&gt;<br />
&lt;/url&gt;<br />
&lt;/MTEntries&gt;<br />
&lt;MTIfArchiveTypeEnabled archive_type=&quot;Category&quot;&gt;<br />
&lt;MTTopLevelCategories&gt;<br />
&lt;MTIfNonZero tag=&quot;MTCategoryCount&quot;&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;$MTCategoryArchiveLink$&gt;&lt;/loc&gt;<br />
&lt;/url&gt;<br />
&lt;/MTIfNonZero&gt;<br />
&lt;MTSubCatsRecurse&gt;<br />
&lt;/MTTopLevelCategories&gt;<br />
&lt;/MTIfArchiveTypeEnabled&gt;<br />
&lt;MTIfArchiveTypeEnabled archive_type=&quot;Monthly&quot;&gt;<br />
&lt;MTArchiveList archive_type=&quot;Monthly&quot;&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;$MTArchiveLink$&gt;&lt;/loc&gt;<br />
&lt;/url&gt;<br />
&lt;/MTArchiveList&gt;<br />
&lt;/MTIfArchiveTypeEnabled&gt;<br />
&lt;/urlset&gt;</div></td></tr></tbody></table></div>
<p>Please note that bold styled strings must be replaced with your own settings.</p>
<p>Save the new template and&#8230; your new sitemap file is ready.</p>
<p><img class="centered" src="http://www.simonecarletti.com/blog/public/2005/10/blog-sitemap-movable-type/movabletype-sitemap.gif" alt="Sitemaps Template" /></p>
<p>That&#8217;s all! Now login into your Google Account, go to the <a title="Google Sitemaps Home" href="https://www.google.com/webmasters/sitemaps">Sitemaps admin panel</a> and submit your sitemap to Google.</p>
<p>Before closing this article, let&#8217;s have a look at the template source code.</p>
<p>First of all, according to <a title="Sitemap Protocol Contents" href="https://www.google.com/webmasters/sitemaps/docs/en/protocol.html">Google Sitemap Specifications</a>, you need to declare the XML file and schema.</p>
<div class="codecolorer-container text default brush: xml" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;urlset xmlns=&quot;http://www.google.com/schemas/sitemap/0.84&quot;&gt;</div></td></tr></tbody></table></div>
<p>Now you are ready to start your URL list.</p>
<p>Add your blog main URL using <code>&lt;$MTBlogURL encode_xml="1"$&gt;</code> template tag. Set the higher priority value and (if required) the update frequency.</p>
<div class="codecolorer-container text default brush: xml" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;url&gt;<br />
&lt;loc&gt;&lt;$MTBlogURL encode_xml=&quot;1&quot;$&gt;&lt;/loc&gt;<br />
&lt;priority&gt;1.0&lt;/priority&gt;<br />
&lt;changefreq&gt;&lt;strong&gt;daily&lt;/strong&gt;&lt;/changefreq&gt;<br />
&lt;/url&gt;</div></td></tr></tbody></table></div>
<p>Then list the Atom and RSS feeds</p>
<div class="codecolorer-container text default brush: xml" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;url&gt;<br />
&lt;loc&gt;&lt;strong&gt;http://www.simonecarletti.com/blog/index.xml&lt;/strong&gt;&lt;/loc&gt;<br />
&lt;priority&gt;1.0&lt;/priority&gt;<br />
&lt;changefreq&gt;daily&lt;/changefreq&gt;<br />
&lt;/url&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;strong&gt;http://www.simonecarletti.com/blog/atom.xml&lt;/strong&gt;&lt;/loc&gt;<br />
&lt;priority&gt;1.0&lt;/priority&gt;<br />
&lt;changefreq&gt;daily&lt;/changefreq&gt;<br />
&lt;/url&gt;</div></td></tr></tbody></table></div>
<p>and all entries.</p>
<div class="codecolorer-container text default brush: xml" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;MTEntries lastn=&quot;9999&quot;&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;$MTEntryPermalink encode_xml=&quot;1&quot;$&gt;&lt;/loc&gt;<br />
&lt;lastmod&gt;&lt;$MTEntryModifiedDate utc=&quot;1&quot; format=&quot;%Y-%m-%dT%H:%M:%SZ&quot;$&gt;&lt;/lastmod&gt;<br />
&lt;/url&gt;<br />
&lt;/MTEntries&gt;</div></td></tr></tbody></table></div>
<p>Finally, complete the recipe with all category indexes</p>
<div class="codecolorer-container text default brush: xml" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;MTIfArchiveTypeEnabled archive_type=&quot;Category&quot;&gt;<br />
&lt;MTTopLevelCategories&gt;<br />
&lt;MTIfNonZero tag=&quot;MTCategoryCount&quot;&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;$MTCategoryArchiveLink$&gt;&lt;/loc&gt;<br />
&lt;/url&gt;<br />
&lt;/MTIfNonZero&gt;<br />
&lt;MTSubCatsRecurse&gt;<br />
&lt;/MTTopLevelCategories&gt;<br />
&lt;/MTIfArchiveTypeEnabled&gt;</div></td></tr></tbody></table></div>
<p>and monthly archives, if they are enabled.</p>
<div class="codecolorer-container text default brush: xml" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;MTIfArchiveTypeEnabled archive_type=&quot;Monthly&quot;&gt;<br />
&lt;MTArchiveList archive_type=&quot;Monthly&quot;&gt;<br />
&lt;url&gt;<br />
&lt;loc&gt;&lt;$MTArchiveLink$&gt;&lt;/loc&gt;<br />
&lt;/url&gt;<br />
&lt;/MTArchiveList&gt;<br />
&lt;/MTIfArchiveTypeEnabled&gt;<br />
&lt;/urlset&gt;</div></td></tr></tbody></table></div>
<div class="flash-message info">
<p>The original tutorial was <a title="Google Sitemaps using Movable Type" href="http://www.niallkennedy.com/blog/archives/2005/06/google_sitemaps.html">posted by Nial Kennedy</a>. The code published above is an updated version based on the original post.</p>
</div>
<p>Related posts<ol>
<li><a href='http://www.simonecarletti.com/blog/2006/09/how-to-integrate-cocomment-with-movable-type-32/' rel='bookmark' title='How to integrate coComment with Movable Type (&gt;= 3.2)'>How to integrate coComment with Movable Type (>= 3.2)</a></li>
<li><a href='http://www.simonecarletti.com/blog/2009/02/movable-type-to-wordpress-importer-utilities/' rel='bookmark' title='Movable Type to WordPress Importer Utilities'>Movable Type to WordPress Importer Utilities</a></li>
<li><a href='http://www.simonecarletti.com/blog/2009/04/tabsonrails/' rel='bookmark' title='TabsOnRails: creating and managing Tabs with Ruby on Rails'>TabsOnRails: creating and managing Tabs with Ruby on Rails</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.simonecarletti.com/blog/2005/10/creating-a-blog-sitemap-with-movable-type/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

