<?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>On a path &#187; Movable Type</title>
	<atom:link href="http://michellejones.net/onapath/category/movable-type/feed" rel="self" type="application/rss+xml" />
	<link>http://michellejones.net/onapath</link>
	<description>a Michelle Jones type situation</description>
	<lastBuildDate>Tue, 29 Jun 2010 13:10:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Hello WordPress</title>
		<link>http://michellejones.net/onapath/2009/12/hello-wordpress.php</link>
		<comments>http://michellejones.net/onapath/2009/12/hello-wordpress.php#comments</comments>
		<pubDate>Sat, 26 Dec 2009 20:44:35 +0000</pubDate>
		<dc:creator>Michelle</dc:creator>
				<category><![CDATA[Movable Type]]></category>

		<guid isPermaLink="false">http://michellejones.net/onapath/?p=200</guid>
		<description><![CDATA[Consuming Louisville is not the only Michelle Jones blog getting a major update under the hood. I&#8217;m ditching Movable Type on every single site that I have. I&#8217;m using .htaccess to update feed links but I&#8217;m not sure it&#8217;s working so you may want to subscribe again.]]></description>
			<content:encoded><![CDATA[<p>Consuming Louisville is not the only Michelle Jones blog getting a major update under the hood. I&#8217;m ditching Movable Type on every single site that I have. I&#8217;m using .htaccess to update feed links but I&#8217;m not sure it&#8217;s working so you may want to subscribe again. </p>
]]></content:encoded>
			<wfw:commentRss>http://michellejones.net/onapath/2009/12/hello-wordpress.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forget MT:OtherBlog Let’s All Use MT:MultiBlog Instead</title>
		<link>http://michellejones.net/onapath/2007/10/forget-mtotherblog-let%e2%80%99s-all-use-mtmultiblog-instead.php</link>
		<comments>http://michellejones.net/onapath/2007/10/forget-mtotherblog-let%e2%80%99s-all-use-mtmultiblog-instead.php#comments</comments>
		<pubDate>Tue, 09 Oct 2007 03:10:10 +0000</pubDate>
		<dc:creator>Michelle</dc:creator>
				<category><![CDATA[Movable Type]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://michellejones.net/onapath/?p=95</guid>
		<description><![CDATA[When my friend and I were first discussing the MT:OtherBlog tag I mentioned that it seemed to do the exact same thing as MT:MultiBlog. I couldn’t, and still can’t, figure out why there would be two different tags with redundant functions but it turns out MT:MultiBlog has a couple more bells and whistles than MT:OtherBlog [...]]]></description>
			<content:encoded><![CDATA[<p>When <a href="http://www.thebrotherlove.com/">my friend</a> and I were first discussing the <a href="http://www.michellejones.net/onapath/2007/10/putting-the-mtotherblog-tag-to.php">MT:OtherBlog</a> tag I mentioned that it seemed to do the exact same thing as MT:MultiBlog. I couldn’t, and still can’t, figure out why there would be two different tags with redundant functions but it turns out MT:MultiBlog has a couple more bells and whistles than MT:OtherBlog that make it much more functional.<br />
In the <a href="http://www.michellejones.net/onapath/2007/10/putting-the-mtotherblog-tag-to.php#comments">comments of my post on MT:OtherBlog</a> <a href="http://www.thebrotherlove.com">J. Brotherlove</a> reminded me of one serious advantage PHP includes have over using MT:OtherBlog: automatic updating. If I’m pulling content  from Blog 1 with a PHP include into Blog 2 whenever Blog 1 is updated the pulled content is automatically updated on Blog 2. This isn’t the case when using MT:OtherBlog. When I update Blog 1 the pulled content on Blog 2 will not be updated until Blog 2 is rebuilt (either indexes or the entire blog depending on how you’ve got it set up). So after round 1 the score card finds MT:OtherBlog winning in the ease of use category but PHP includes winning in terms of actual useful functionality. So, a tie.<br />
But then (again in the comments of my post on MT:OtherBlog) <a href="http://rayners.org">David Raynes</a> dropped some <a href="http://www.michellejones.net/onapath/2007/10/putting-the-mtotherblog-tag-to.php#comment-32032">incredibly helpful knowledge</a> that turned PHP includes and MT:OtherBlog both into also-rans. Turns out David originally developed the MT:OtherBlog functionality as a plugin for an older version of Movable Type. With Movable Type 4.0 this functionality was packaged into the application as MT:MultiBlog. While on the surface MT:MultiBlog and MT:OtherBlog do the same thing (namely allow you to easily pull content from one blog into another blog) the former has a serious advantage.<br />
The MT:MultiBlog tag gets its functionality from the MT:MultiBlog plugin and that plugin has rebuild triggering options. Whereas when using MT:OtherBlog I would have to manually rebuild Blog 2 to force it to pull the most recent content from Blog 1 when using MT:MultiBlog I can set a rebuild trigger to automatically rebuild.<br />
Let me use this blog and <a href="http://www.correspondencenotes.com">Correspondence Notes</a> again as a real world example. I want the content I’m pulling from Correspondence Notes into the footer of this blog to always be up to date. Using MT:MultiBlog I have two steps to making that happen. First step is getting the code in order:<br />
<code>&lt;mt:MultiBlog include_blogs="1"&gt;<br />
&lt;MTEntries lastn="2"&gt;<br />
&lt;a href="&lt;$MTEntryLink$&gt;"&gt;&lt;$MTEntryTitle$&gt;&lt;/a&gt;<br />
&lt;$MTEntryExcerpt$&gt;&lt;p&gt;<br />
&lt;/MTEntries&gt;<br />
&lt;/mt:MultiBlog&gt;</code><br />
This is of course almost identical to the code used in the <a href="http://www.michellejones.net/onapath/2007/10/putting-the-mtotherblog-tag-to.php">MT:OtherBlog example</a>. David rightly <a href="http://www.michellejones.net/onapath/2007/10/putting-the-mtotherblog-tag-to.php#comment-32032">points out</a> that this code could be condensed but I prefer writing it out like I have here. Just a personal preference so feel free to do it however you like.<br />
The second step is to configure a rebuild trigger using the MT:MultiBlog plugin. Go to plugin configurations for Blog 2.<br />
<span class="mt-enclosure mt-enclosure-image"><a href="http://www.michellejones.net/onapath/images/Picture%201.php" onclick="window.open('http://www.michellejones.net/onapath/images/Picture%201.php','popup','width=984,height=555,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.michellejones.net/onapath/images/Picture 1-thumb-400x225.png" width="400" height="225" alt="Picture 1.png" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></span><br />
Select MT:MultiBlog 2.0, click settings and then Create Rebuild Trigger. Choose the blog that will be triggering the rebuild (in my example it’s Correspondence Notes) and configure it. I chose to rebuild the On a path indexes whenever a <a href="http://www.correspondencenotes.com">Correspondence Notes</a> entry is saved.<br />
<span class="mt-enclosure mt-enclosure-image"><a href="http://www.michellejones.net/onapath/images/Picture%202.php" onclick="window.open('http://www.michellejones.net/onapath/images/Picture%202.php','popup','width=985,height=575,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.michellejones.net/onapath/images/Picture 2-thumb-400x233.png" width="400" height="233" alt="Picture 2.png" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></span><br />
Now my footer here at On a path will always be rebuilt when a new entry is saved at <a href="http://www.correspondencenotes.com">Correspondence Notes </a>and thus my footer here will always have the most up to date content. Sweet.</p>
]]></content:encoded>
			<wfw:commentRss>http://michellejones.net/onapath/2007/10/forget-mtotherblog-let%e2%80%99s-all-use-mtmultiblog-instead.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Working with Movable Type 4.0 Templates: Sidebar</title>
		<link>http://michellejones.net/onapath/2007/10/working-with-movable-type-4-0-templates-sidebar.php</link>
		<comments>http://michellejones.net/onapath/2007/10/working-with-movable-type-4-0-templates-sidebar.php#comments</comments>
		<pubDate>Wed, 03 Oct 2007 22:50:57 +0000</pubDate>
		<dc:creator>Michelle</dc:creator>
				<category><![CDATA[Movable Type]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://michellejones.net/onapath/?p=93</guid>
		<description><![CDATA[The new templates and template structure in Movable Type 4 streamline and simplify the process of making site wide changes to your blog. Well that’s what they do once you actually understand the templates and template structure. But understanding how the templates work together and digesting the tag soup that swims in each of those [...]]]></description>
			<content:encoded><![CDATA[<p>The new templates and template structure in Movable Type 4 streamline and simplify the process of making site wide changes to your blog. Well that’s what they do once you actually understand the templates and template structure. But understanding how the templates work together and digesting the tag soup that swims in each of those templates? Not exactly simple. So at the suggestion of a friend I thought I’d create a series of basic tutorials that help explain the templates and template structure. The tutorials will begin at a relatively basic entry level. </p>
<p>Instead of just breaking down templates line by line I thought it would be easier and more practical to look at templates in the context of actually doing something. You don’t really need to understand every single line of code if you know where and how to make the changes to accomplish what you want. For this first tutorial we’ll be making changes to the sidebar. Specifically we’re going to remove a widget we don’t want and add Google AdSense ads in the sidebar, after the archive content, on every page of a blog. </p>
<p>Before we get to actually editing any templates I can’t recommend highly enough that you download and install the <a href="http://plugins.movabletype.org/template-shelf/">Template Shelf</a> plugin. If you’re going to spend any time at all editing your templates this plugin will make your life much easier. For this tutorial we’re only going to be editing one template. But it’s not unlikely that you’ll be needing to hop back and forth between multiple templates and modules in the future and this plugin makes that much, much simpler. </p>
<p>I’ve set up a <a href="http://www.michellejones.net/tutorials/">brand new blog</a> to serve as an example of the work done in this tutorial. I selected the minimalist light blue style and a two column (wide-thin) layout from Stylecatcher in Movable Type. Since we’ve got a two column layout the template we’re going to be modifying is the Sidebar &#8211; 2 Column Layout. This template is actually a template module. What’s a module? The best analogy I can think of is that a template module is like a backpack. You’ve got a whole bunch of stuff (all the code for the sidebar) you need to get somewhere (in the sidebar of all the pages on your blog) and it’s much easier to put all of that stuff in a backpack (a template module) and then unpack it when you get to where you’re going. </p>
<p>So instead of having to put all your sidebar code into every template (main index, individual archive pages, monthly archives, etc) you just reference the particular module that contains the code like so &lt;$MTInclude module=&#8221;Sidebar &#8211; 2 Column Layout&#8221;$&gt;. </p>
<p>Out of the gate this is what the sidebar looks like. <br /><span class="mt-enclosure mt-enclosure-image"><a href="http://www.michellejones.net/onapath/images/beforeedits.php" onclick="window.open('http://www.michellejones.net/onapath/images/beforeedits.php','popup','width=995,height=586,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.michellejones.net/onapath/images/beforeedits-thumb-300x176.png" alt="beforeedits.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="176" width="300" /></a></span></p>
<p><span id="more-93"></span><br />
The first thing I want to do, is remove the text that says “Tag Cloud.”<br />
Tag clouds can be fun but I’m not using tags on the tutorial example<br />
blog so there is no reason to have it there. </p>
<p>To remove the Tag<br />
Cloud we need to find the following section of code in the Sidebar &#8211; 2<br />
Column Layout template module (line 169 if you’ve got syntax<br />
highlighting turned on):<br />&lt;MTIf name=&#8221;main_index&#8221;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&#8221;widget-cloud widget&#8221;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h3 class=&#8221;widget-header&#8221;&gt;Tag Cloud&lt;/h3&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&#8221;widget-content&#8221;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ul class=&#8221;widget-list&#8221;&gt;<br />&nbsp;&nbsp;&nbsp; &lt;MTTags limit=&#8221;20&#8243; sort_by=&#8221;rank&#8221;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
&lt;li class=&#8221;rank-&lt;$MTTagRank max=&#8221;10&#8243;$&gt;<br />
widget-list-item&#8221;&gt;&lt;a<br />
href=&#8221;&lt;$MTTagSearchLink$&gt;&#8221;&gt;&lt;$MTTagName$&gt;&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/MTTags&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/ul&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />&lt;/MTIf&gt;</p>
<p>Let’s look some of the important code in this section before we remove it. </p>
<p>&lt;MTIf<br />
name=&#8221;main_index&#8221;&gt; and &lt;/MTIf&gt; Everything that falls between<br />
these two template tags is governed by a rule that basically says “<b>if</b> a template is the main index template <b>then</b><br />
this information will be displayed on that template’s published page.<br />
If a template is not the main index template then this information will<br />
not be displayed on that template’s published page(s).” In other words<br />
“the information within these tags is only going to be displayed on the<br />
main index page and not any of the archive pages.”</p>
<p><i>Wrap your head around the if/then idea here. It’s going to be really important later.</i> </p>
<p>&lt;div<br />
class=&#8221;widget-cloud widget&#8221;&gt; and &lt;/div&gt; The first tag in this<br />
pair says “we’re dealing with the tag cloud widget here.” Th second tag<br />
(which comes just before &lt;/MTif&gt; if you’re confused) says “we’re<br />
done dealing with the tag cloud widget now.” </p>
<p>Combine those<br />
four tags together with all the code included between them and you’ve<br />
got a Tag Cloud that appears on your blog’s main index page and nowhere<br />
else. </p>
<p>I don’t want a Tag Cloud to appear on the main page or<br />
anywhere else so I’m totally deleting all of this code. If you think<br />
you might want to implement the tag cloud later on you can just <a href="http://www.w3schools.com/tags/tag_comment.asp">comment out</a> this section instead. <br /><span class="mt-enclosure mt-enclosure-image"><a href="http://www.michellejones.net/onapath/images/posttagcloud.php" onclick="window.open('http://www.michellejones.net/onapath/images/posttagcloud.php','popup','width=989,height=584,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.michellejones.net/onapath/images/posttagcloud-thumb-300x177.png" alt="posttagcloud.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="177" width="300" /></a></span>Tag Cloud gone we can now move on to adding the code for <a href="http://www.google.com/adsense">AdSense</a><br />
into the sidebar. To do this next step you’ll have of course needed to<br />
setup an AdSense account and grabbed the code they give you to put ads<br />
on your site. It will look something like this</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />&lt;!&#8211;<br />google_ad_client = &#8220;pub-################&#8221;;<br />google_ad_width = 120;<br />google_ad_height = 600;<br />google_ad_format = &#8220;120x600_as&#8221;;<br />google_ad_type = &#8220;text&#8221;;<br />google_ad_channel = &#8220;&#8221;;<br />google_color_border = &#8220;FFFFFF&#8221;;<br />google_color_bg = &#8220;FFFFFF&#8221;;<br />google_color_link = &#8220;000000&#8243;;<br />google_color_text = &#8220;000000&#8243;;<br />google_color_url = &#8220;333333&#8243;;<br />google_ui_features = &#8220;rc:10&#8243;;<br />//&#8211;&gt;<br />&lt;/script&gt;<br />&lt;script type=&#8221;text/javascript&#8221;<br />&nbsp; src=&#8221;http://pagead2.googlesyndication.com/pagead/show_ads.js&#8221;&gt;<br />&lt;/script&gt;</p>
<p>I<br />
want the ads to appear, on every page of my tutorial blog, after the<br />
monthly archives list and before “Subscribe to this blog’s feed.”</p>
<p>On<br />
or about line 242 (depending on whether you deleted or commented out<br />
the Tag Cloud code) you should find the code block that begins &lt;div<br />
class=&#8221;widget-syndicate widget&#8221;&gt;. Like the previous code in this<br />
format this is saying “hey we’re dealing with the syndicate widget now.”</p>
<p>Since<br />
we want our ads to be directly about the syndication widget (the<br />
syndication widget is where the phrase “Subscribe to this blog’s feed”<br />
is coming from) we want to paste in the code Google gave of us here.&nbsp; </p>
<p>Voila!<br />
Now you’ve got ads on all the pages of your blog in the sidebar<br />
between the list of monthly archives and “Subscribe to this blog’s<br />
feed.”<br /><span class="mt-enclosure mt-enclosure-image"><a href="http://www.michellejones.net/onapath/images/ads1.php" onclick="window.open('http://www.michellejones.net/onapath/images/ads1.php','popup','width=996,height=583,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.michellejones.net/onapath/images/ads1-thumb-300x175.png" alt="ads1.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="175" width="300" /></a></span>Or<br />
do you? You’ve got the ads on every page sure enough. Those ads always<br />
appear above “Subscribe to this blog’s feed” just like we want but on<br />
some pages, say an individual archive page for example, there is no<br />
list of monthly archives. And this is where things get a wee bit<br />
tricky. </p>
<p><span class="mt-enclosure mt-enclosure-image"><a href="http://www.michellejones.net/onapath/images/ads3.php" onclick="window.open('http://www.michellejones.net/onapath/images/ads3.php','popup','width=993,height=583,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.michellejones.net/onapath/images/ads3-thumb-300x176.png" alt="ads3.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="176" width="300" /></a></span>By<br />
default Movable Type thinks you probably want slightly different<br />
content in the sidebars of each of the main sections of your blog. For<br />
example on your <a href="http://www.michellejones.net/tutorials">main page</a><br />
it thinks you want a search box, a list of recent entries, a list of<br />
categories, a list of monthly archives, the syndication widget and<br />
finally the powered by Movable Type graphic. On your <a href="http://www.michellejones.net/tutorials/2007/10/fake-entry-2.html">individual archive pages</a><br />
it thinks you want a search box, meta data about the individual entry,<br />
a link to to the main index page, a link to the main archive page, the<br />
syndication widget and finally the powered by Movable Type graphic. All<br />
the other sections (monthly archives, main archives, etc) have, by<br />
default, some variation of either of these two versions of sidebar<br />
content. </p>
<p>Remember how I said if/then was going to be important later? Later is now. </p>
<p>Movable<br />
Type is right, I want the search box at the top of the sidebar on every<br />
page of my blog so I’m not going to touch the search box code at all.<br />
Search box related code takes up the first 40 lines of the Sidebar &#8211; 2<br />
Column Layout template so let’s skip to line 41. </p>
<p>Line 41 is<br />
&lt;MTIf name=&#8221;module_about_context&#8221;&gt;. Just like when we saw MTIf<br />
before this is signifying the beginning of an if/then statement. This<br />
particular if/then statement is saying “the following content is a<br />
module called about context. If a template calls for the module called<br />
“about context” then display the following information. Simple enough<br />
right? Wrong.</p>
<p>Wrong because the about context module has several<br />
other if/then statements wrapped up in it and some if/then/else statements<br />
as well. </p>
<p>An example:<br />&lt;h3 class=&#8221;widget-header&#8221;&gt;<br />&lt;MTIf name=&#8221;entry_template&#8221;&gt;<br />About this Entry<br />&lt;MTElse&gt;<br />&lt;MTIf name=&#8221;archive_template&#8221;&gt;<br />About this Archive<br />&lt;/MTIf&gt;<br />&lt;/MTIf&gt;<br />&lt;MTIf name=&#8221;archive_index&#8221;&gt;<br />About Archives<br />&lt;/MTIf&gt;<br />&lt;/h3&gt;</p>
<p>The<br />
English translation: if a page is built from the entry template then<br />
display “About this Entry” if the page is built from the archive<br />
template then display “About this Archive” and if the page is built<br />
from the archive index template then display “About Archives.” In this<br />
case “About this Entry”, “About this Archive” and “About Archives” are<br />
all headers for the section that immediately follow the search box in<br />
the sidebars of pages built from the templates. On individual entry<br />
pages the section is called “About this Entry” and so on. </p>
<p>As<br />
my high school band director liked to ask “is that clear as mud?” That<br />
part actually should be relatively easy to follow. It’s the next<br />
section, starting at line 55 and going all the way through 116 that is<br />
a bit more complex. This section contains another round of if/then/else<br />
statements that determines what content to display in the about section<br />
the sidebar depending on which template was used to build a page. </p>
<p>But<br />
for our current project I don’t want to change the “About” section<br />
content that Movable Type is creating by default. I want the about info<br />
MT is spitting out by default for the various pages to stay the same.<br />
All I’m concerned about right now is getting the Monthly Archives list<br />
to appear on every page so I can have my ads between the Monthly<br />
Archive list and “Subscribe to this blog’s feed.” There are two steps<br />
to making the monthly archive list appear on every page. </p>
<p>The first step is to address the if statement that line 188 contains. It says<br />&lt;MTIf<br />
name=&#8221;module_monthly_archives&#8221;&gt;. From past experience we know this<br />
is saying “if a template calls for the module called monthly archives<br />
then display this information.” By understanding that I know I’ve got<br />
two ways for making the monthly archives list appear on every page, an<br />
easy way and a hard way. The hard way is to go through every single<br />
index template and add in a call for the monthly archive modules. The<br />
easy way is to remove the if statement. Meaning, there’s no if about<br />
it, I want this content on every single page so I’m removing &lt;MTIf<br />
name=&#8221;module_monthly_archives&#8221;&gt; and the accompanying &lt;/MTIf&gt;<br />
(line 205) from the template. Now the content that was surrounded by<br />
those two lines will now appear everywhere, not just on pages calling<br />
for the monthly archives module.&nbsp; </p>
<p>On <a href="http://www.correspondencenotes.com/">Correspondence Notes</a><br />
I wanted the right sidebar content to just contain AdSense ads and not<br />
the about content Movable Type puts there by default. Since I wanted<br />
this on every page, like we wanted our monthly archive list on the<br />
tutorial blog,&nbsp; I put this technique of removing if statements to work<br />
there as well. With all the if statements removed the code gets really<br />
simple. So mentally bookmark the idea of removing if statements when<br />
you don’t need to change the content depending on which template a page<br />
is built from. </p>
<p>As an example here is what the code for the right sidebar of <a href="http://www.correspondencenotes.com/">Correspondence Notes</a> it looks like this:<br />&lt;div class=&#8221;widget-welcome widget&#8221;&gt;<br />&lt;h3 class=&#8221;widget-header&#8221;&gt;<br />Welcome<br />&lt;/h3&gt;<br />&lt;div class=&#8221;widget-content&#8221;&gt;<br />Correspondence Notes is about communication.<br />&lt;p&gt;end<br />
tips, suggestions or perhaps just a greeting to &lt;a<br />
href=&#8221;mailto:info@correspondencenotes.com&#8221;&gt;info@correspondencenotes.com&lt;/a&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;</p>
<p>The<br />
second part of getting our Monthly Archives list in order is editing<br />
the header. If you leave the code as is (line 193: &lt;h3<br />
class=&#8221;widget-header&#8221;&gt;&lt;$MTArchiveLabel$&gt; &lt;a<br />
href=&#8221;&lt;$MTBlogURL$&gt;archives.html&#8221;&gt;Archives&lt;/a&gt;&lt;/h3&gt;)<br />
your monthly archive list will be right in most places but not on your<br />
individual entry pages. Instead of saying “Monthly Archives” and then<br />
listing your monthly archives it will say “Entry Archives” and then<br />
list your monthly archives. Everywhere else will look just peachy but<br />
to make the individual entry pages come inline we need to replace<br />
&lt;$MTArchiveLabel$&gt; with the actual word “Monthly. ” So the new<br />
line 193 should look like this:&nbsp; </p>
<p>&lt;h3 class=&#8221;widget-header&#8221;&gt;Monthly &lt;a href=&#8221;&lt;$MTBlogURL$&gt;archives.html&#8221;&gt;Archives&lt;/a&gt;&lt;/h3&gt;</p>
<p>Whoo.<br />
That wasn’t too bad was it? It’s a shame we aren’t quite done yet. Take<br />
a look at the screenshot below from category archive page. It’s got the<br />
Monthly Archives list alright but then it’s got the listing of the<br />
monthly entries for the particular category we’re currently looking at.<br />
Who needs that? Not us. Looking at the code directly beneath the<br />
monthly archives list in the template (starting with line 206) we can<br />
see that Movable Type thinks we might want to list not only a<br />
category’s monthly archives but also monthly archives by author. Again<br />
I say who needs that? And again I answer myself with not us.<br /><span class="mt-enclosure mt-enclosure-image"><a href="http://www.michellejones.net/onapath/images/categoryarchive.php" onclick="window.open('http://www.michellejones.net/onapath/images/categoryarchive.php','popup','width=989,height=579,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.michellejones.net/onapath/images/categoryarchive-thumb-300x175.png" alt="categoryarchive.png" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="175" width="300" /></a></span>To<br />
get rid of these unwanted archive lists I’m cutting out everything in<br />
the template that falls between the end of the monthly archive listing<br />
code block and the beginning of my Google AdSense code. Again, you can<br />
comment these out if you think you might want to use them later. I<br />
never will so they’re getting cut. </p>
<p>Now we’re done. For real. Go ahead, look around all the pages of the <a href="http://www.michellejones.net/tutorials">tutorials blog</a>.<br />
AdSense ads on every page between the Monthly Archive listing and the<br />
syndication widget and not a Tag Cloud to be found. Feel free to <a href="http://www.michellejones.net/onapath/files/sidebar2.txt">download the edited version</a><br />
of the Sidebar &#8211; 2 Column Layout template from this tutorial. Remember<br />
that I deleted whole sections of code instead of commenting them out. </p>
<p>If<br />
you’re new to Movable Type templates and template tags editing them may<br />
still seem a bit overwhelming but give it time and some practice,<br />
you’ll get the hang of it. Hopefully this tutorial will help clear some<br />
things up and make things a bit easier on you. I hope to write more of<br />
these project based tutorials. To that end I’m asking for requests/taking suggestions on what projects to write tutorials for<br />
next. PHP includes? Adding Flickr badges? CSS modifications? Etc.<br />
Please leave a comment or write me at the address in this page’s footer.</p>
<p>Naturally if I&#8217;ve made any mistakes or if you have additional questions please let me know. </p>
]]></content:encoded>
			<wfw:commentRss>http://michellejones.net/onapath/2007/10/working-with-movable-type-4-0-templates-sidebar.php/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Putting the mt:OtherBlog tag to work</title>
		<link>http://michellejones.net/onapath/2007/10/putting-the-mtotherblog-tag-to-work.php</link>
		<comments>http://michellejones.net/onapath/2007/10/putting-the-mtotherblog-tag-to-work.php#comments</comments>
		<pubDate>Mon, 01 Oct 2007 16:30:30 +0000</pubDate>
		<dc:creator>Michelle</dc:creator>
				<category><![CDATA[Movable Type]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://michellejones.net/onapath/?p=92</guid>
		<description><![CDATA[There are a lot of new and useful tags in Movable Type 4.0. I&#8217;m slowly working my way through figuring some of them out and putting them to use. One of my favorites new tags is mt:OtherBlog. I actually hadn&#8217;t played with it at all until a friend mention his frustration with figuring it out [...]]]></description>
			<content:encoded><![CDATA[<p>There are a lot of new and useful tags in Movable Type 4.0. I&#8217;m slowly working my way through figuring some of them out and putting them to use. One of my favorites new tags is <a href="http://www.movabletype.org/documentation/appendices/tags/otherblog.html">mt:OtherBlog</a>. I actually hadn&#8217;t played with it at all until <a href="ttp://www.thebrotherlove.com/">a friend</a> mention his frustration with figuring it out since the <a href="http://www.movabletype.org/documentation/appendices/tags/otherblog.html">documentation</a> for this tag is a little scant. So I spent a little time with it and am glad I did.<br />
mt:Otherblog makes it easy to pull and post content from other blogs in your Movable Type installation. Previously I&#8217;d use a php include to pull content from another blog. Take a look at this site&#8217;s footer. See where it says &#8220;from my Reading List&#8221;? That content is being pulled from my <a href="http://www.michellejones.net/books">Reading List blog</a> via a php include. I haven&#8217;t switched it to the mt:OtherBlog method yet. The content from <a href="http://www.correspondencenotes.com">Correspondence Notes</a> however is being pulled via mt:OtherBlog.<br />
If you can do what mt:OtherBlog does with a php include what&#8217;s the big deal? Efficiency and simplicity. For the php include method you must setup a special template for the first blog that spits out only the content you want to pull into the second blog. For <a href="http://www.michellejones.net/books">Reading List</a> the code in that template looks like this<br />
<code><br />
&lt;MTEntries lastn="1"&gt;<br />
&lt;a href="&lt;$MTEntryLink$&gt;"&gt;&lt;$MTEntryTitle$&gt;&lt;/a&gt; &lt;br/&gt;<br />
&lt;$MTEntryExcerpt$&gt;<br />
&lt;/MTEntries&gt;</code><br />
Then you must call up the content from that special template in your second blog&#8217;s template<br />
<code>&lt;?php require("/home/serverpath/html/books/specialtemplate.html"); ?&gt;</code><br />
And you of course need to make sure all the pages you want to display this content on have the .php extension, not .html.<br />
With mt:Otherblog you don&#8217;t have to do anything at all to the blog you want to pull content from and your standard .html extensions are just fine. All you have to do is figure out that blog&#8217;s id number and then insert the following code (or some variation on it depending on what you specifically want to display) into the blog that will be displaying that content.<br />
<code>&lt;mt:OtherBlog include_blogs="1&gt;<br />
&lt;MTEntries lastn="2"&gt;<br />
&lt;a href="&lt;$MTEntryLink$&gt;"&gt;&lt;<br />
$MTEntryTitle$&gt;&lt;/a&gt; &lt;br/&gt;<br />
&lt;$MTEntryExcerpt$&gt;<br />
&lt;/MTEntries&gt;<br />
&lt;/mt:OtherBlog&gt;</code><br />
The important variable for pulling content from other blogs is include_blogs=&#8221;#&#8221;. Key here is blogs, not blog. When I first started fooling with it I was trying <code>&lt;mt:OtherBlog include_blog="#"&gt;</code> with much frustration. Since you&#8217;re using include_blogs you can of course pull from multiple blogs by simply<br />
using comma separators (include_blogs=&#8221;3, 15&#8243;, etc).</p>
]]></content:encoded>
			<wfw:commentRss>http://michellejones.net/onapath/2007/10/putting-the-mtotherblog-tag-to-work.php/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How To Change the Default Image Upload Location in Movable Type 4.0</title>
		<link>http://michellejones.net/onapath/2007/09/how-to-change-the-default-image-upload-location-in-movable-type-4-0.php</link>
		<comments>http://michellejones.net/onapath/2007/09/how-to-change-the-default-image-upload-location-in-movable-type-4-0.php#comments</comments>
		<pubDate>Thu, 27 Sep 2007 19:13:16 +0000</pubDate>
		<dc:creator>Michelle</dc:creator>
				<category><![CDATA[Movable Type]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://michellejones.net/onapath/?p=90</guid>
		<description><![CDATA[I&#8217;ve started a new site called Correspondence Notes. The site is about written communication as well as the tools and materials that go along with it. It contains lots of fawning over and geeking out about stationery and note cards. Like all of my sites Correspondence Notes is powered by Movable Type. Nearly every article [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started a new site called <a href="http://www.correspondencenotes.com/">Correspondence Notes</a>. The site is about written communication as well as the tools and materials that go along with it. It contains lots of fawning over and geeking out about stationery and note cards. Like all of my sites <a href="http://www.correspondencenotes.com">Correspondence Notes</a> is powered by <a href="http://www.movabletype.org">Movable Type</a>.<br />
Nearly every article for Correspondence Notes contains at least one image. I use Movable Type&#8217;s built in upload feature to upload images and add them to entries. The process is fine except for one step. By default Movable Type will upload images to your Site Root. That&#8217;s great except I like my images to go into a subdirectory I like to call&#8230;images. I can of course, with the file upload utility, tell Movable Type to put the images into the images subdirectory. The problem is that the utility will not remember this preference. Every time I upload an image I have to tell Movable Type again to put the new image in the images directory instead of the Site Root. Though it only takes a few key strokes to type &#8220;images&#8221; into the subdirectory field it&#8217;s a silly time waster since I want every single image I upload to go into that folder.<br />
Since there isn&#8217;t an option within the Movable Type user interface to make the file upload utility remember that I want my images to always go into the images subdirectory I decided to go straight to the source and make it happen. Please remember that if these steps break your copy of Movable Type I&#8217;m not the least bit responsible.<br />
Configuring the upload utility to upload to the same subdirectory by default is actually quite simple. It only requires editing a single line of a single .tmpl file. However, if monkeying with an application&#8217;s source code makes you really nervous I&#8217;ve heard there is a <a href="http://www.eatdrinksleepmovabletype.com/announcements/better_file_uploader_22_for_movable_type_4/">great plugin for improving Movable Type&#8217;s file upload utility that only costs $10</a>.<br />
The file to edit is called asset_upload.tmpl. Assuming you have your Movable Type files in your cgi-bin the path to this file looks something like cgi-bin/mt/tmpl/cms/dialog/asset_upload.tmpl.<br />
1. Download asset_upload.tmpl (I highly recommend you save a backup copy of it before you edit it)<br />
2. Open asset_upload.tmpl and look for the following: <code><br />
/ &lt;input name="extra_path" id="extra_path" value="&lt;mt:var name="extra_path" escape="html"&gt;" /&gt;<br />
</code><br />
3. Change<br />
<code> value="&lt;mt:var name="extra_path" escape="html"&gt;"</code><br />
to<br />
<code> value="images"</code><br />
where &#8220;images&#8221; is whatever subdirectory name you want your images uploaded to by default.<br />
So your final code should look like this<br />
<code><br />
/ &lt;input name="extra_path" id="extra_path" value="images" /&gt;<br />
</code><br />
4. Save and upload asset_upload.tmpl<br />
5. Upload an image<br />
<span class="mt-enclosure mt-enclosure-image"><a href="http://www.michellejones.net/onapath/images/uploadedit.php" onclick="window.open('http://www.michellejones.net/onapath/images/uploadedit.php','popup','width=656,height=495,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.michellejones.net/onapath/images/uploadedit-thumb-300x226.png" width="300" height="226" alt="uploadedit.png" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></span><br />
You&#8217;ll notice that the subdirectory field is still completely editable. So while Movable Type will, by default, now upload my images to the images subdirectory, should I want to upload a particular image to a different directory all I have to do is type a different name into the subdirectory text box.</p>
]]></content:encoded>
			<wfw:commentRss>http://michellejones.net/onapath/2007/09/how-to-change-the-default-image-upload-location-in-movable-type-4-0.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
