<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>The Composing Stick</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/" />
    <link rel="self" type="application/atom+xml" href="http://www.composing-stick.net/atom.xml" />
    <id>tag:www.composing-stick.net,2008-08-24://1</id>
    <updated>2010-03-07T20:37:39Z</updated>
    <subtitle>Building Blogs with Movable Type</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.25</generator>

<entry>
    <title>HashTag now on GitHub</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2010/03/hashtag-now-on-github.html" />
    <id>tag:www.composing-stick.net,2010://1.34</id>

    <published>2010-03-07T20:34:00Z</published>
    <updated>2010-03-07T20:37:39Z</updated>

    <summary>I have moved the source code for HashTag from my private SVN over to GitHub. If you want to contribute any changes you can find it here http://github.com/TheComposingStick/HashTag. I have also set up an account on Lighthouse to track bugs...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>I have moved the source code for HashTag from my private SVN over to GitHub. If you want to contribute any changes you can find it here <a href="http://github.com/TheComposingStick/HashTag">http://github.com/TheComposingStick/HashTag</a>.</p>

<p>I have also set up an account on Lighthouse to track bugs and feature requests <a href="http://thecomposingstick.lighthouseapp.com/projects/43642/home">http://thecomposingstick.lighthouseapp.com/projects/43642/home</a>.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>HashTag 2.5 Released</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2010/02/hashtag-25-released.html" />
    <id>tag:www.composing-stick.net,2010://1.33</id>

    <published>2010-02-21T14:31:43Z</published>
    <updated>2010-02-21T14:48:53Z</updated>

    <summary>Version 2.5 of my HashTag plugin has now been released. See the Hash Tag Plugin project page for more information. The major change in 2.5 is the ability to tweet scheduled posts, currently that uses the default settings for the...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>Version 2.5 of my HashTag plugin has now been released. See the <a href="http://www.composing-stick.net/projects/hashtag/">Hash Tag Plugin</a> project page for more information.</p>

<p>The major change in 2.5 is the ability to tweet scheduled posts, currently that uses the default settings for the plugin at the time the scheduled post is published.</p>

<p>So what will be happening for Version 3.0? Well there are three things planned:</p>

<ol>
<li><p>Support for MT5.x and Open Melody.</p></li>
<li><p>Using OAuth to link to your twitter account.</p></li>
<li><p>Store tweet options with post / page so that default options are not used for scheduled posts and you can set if the plugin should retweet when you edit a page.</p></li>
</ol>
]]>
        

    </content>
</entry>

<entry>
    <title>Hash Tag Beta 2.5 Now With Scheduled Post Support</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2009/07/hash-tag-beta-25-now-with-scheduled-post-support.html" />
    <id>tag:www.composing-stick.net,2009://1.32</id>

    <published>2009-07-17T22:23:23Z</published>
    <updated>2009-07-17T22:00:08Z</updated>

    <summary>I have now added support for scheduled publishing in my HashTag plugin. It is currently a beta and can be downloaded from this link HashTag Beta 2.5. Some of the changes: The HashTag options have been moved to a drop...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>I have now added support for scheduled publishing in my <a href="http://www.composing-stick.net/projects/hashtag/">HashTag plugin</a>. It is currently a beta and can be downloaded from this link <a href="http://www.composing-stick.net/projects/hashtag/HashTagv2.5Beta.zip">HashTag Beta 2.5</a>.</p>

<p>Some of the changes:</p>

<ul>
<li>The HashTag options have been moved to a drop down list rather than a radio button to save space.</li>
<li>No longer requires XML::Atom</li>
<li>Includes option to treat entry tags as HashTags</li>
<li>Can tweet scheduled posts. <strong>NOTE</strong> This will use the plugin default settings (at the time the entry gets published) for tweeting, this can not currently be set on a per post basis.</li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>5 Tips for getting help with Movable Type</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2009/04/5-tips-for-getting-help-with-movable-type.html" />
    <id>tag:www.composing-stick.net,2009://1.31</id>

    <published>2009-04-08T21:15:36Z</published>
    <updated>2009-04-08T21:44:12Z</updated>

    <summary>Last year I wrote a post about getting help with Movable Type. Slightly tongue in cheek, but made a few valid points. Things have moved on now, so here is the updated Tips for getting help with Movable Type. 1....</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="Tips" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>Last year I wrote a post about <a href="http://www.composing-stick.net/2008/11/getting-help-with-movable-type.html">getting help with Movable Type</a>. Slightly tongue in cheek, but made a few valid points. Things have moved on now, so here is the updated Tips for getting help with Movable Type.</p>

<h2>1. Go to the right place.</h2>

<ul>
<li><strong>Purchased a license?</strong> Go to <a href="http://www.movabletype.com">http://www.movabletype.com</a> and log in under the account you purchased your license under and click on <em>Open a new ticket</em>.</li>
<li><strong>MTOS or a free version?</strong> Go to the community forums <a href="http://forums.movabletype.com">http://forums.movabletype.com</a> and see if anyone has had a similar problem. If not post a question. You can also run a comprehensive search across Movable Type resources by using <a href="http://endevver.com/mtsearch">mtsearch</a>.</li>
<li><strong>Problem with a Plugin?</strong> Try contacting the plugin author. If that does not work try the community.</li>
</ul>

<h2>2. Be clear about the issue in your topic title.</h2>

<p>Topic titles are your hook, be clear about your problem; Sidebar is being pushed below content is more informative than HELP!!!!!</p>

<h2>3. Details.</h2>

<p>The more details you can give at the outset the less back and forth later. Try to include</p>

<ul>
<li>The version and distribution e.g. <em>MTOS 4.2, Pro 4.01</em></li>
<li>A link to the site (if relevant).</li>
<li>Sample code (if relevant). You will need to encode your code to make sure that it displays correctly. Use a site like <a href="http://centricle.com/tools/html-entities/">http://centricle.com/tools/html-entities/</a> to do this.</li>
<li>Steps to reproduce the problem.</li>
</ul>

<h2>4. Be Polite.</h2>

<p>The majority of people that help on the community forums are users, just like you. They help in their spare time. If the problem is particularly complex then you may have to wait for someone to set up a similar configuration to test. It is a sad fact that people are less inclined to help people that spend the majority of their post mad mouthing the product or threatening to move to a rival.</p>

<h2>5. Give back to the community</h2>

<p>If you found the help useful, pay it forward by helping out another user when you can. OK, maybe this isn't a real tip as such but it is valid.  If you have another suggestion for tip 5 let me know by adding a comment.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Layout Issues Using Version 3 Templates with Version 4 Stylesheets</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2009/01/layout-issues-using-version-3-templates-with-version-4-stylesheets.html" />
    <id>tag:www.composing-stick.net,2009://1.30</id>

    <published>2009-01-03T16:46:20Z</published>
    <updated>2009-01-03T17:30:30Z</updated>

    <summary>A problem that comes up every so often on the Movable Type forums is the mixing of recently upgraded system, old Movable Type version 3.x templates and Movable Type version 4 stylesheets. In layman terms &quot;The layout is buggered&quot; or...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="Tips" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>A problem that comes up every so often on the Movable Type forums is the mixing of recently upgraded system, old Movable Type version 3.x templates and Movable Type version 4 stylesheets. In layman terms "<em>The layout is buggered</em>" or "<em>The syles don't show</em>". </p>

<p>A reason for this is that a number of the divs (html code that allows use to define parts of a page) had their names changed from a functional name such as banner to a semantic name such as header, so your site looks as if it has lost its style. At this point you have three choices:</p>

<ol>
<li>Start from scratch using new templates and new stylesheets.</li>
<li>Rename all the styles in the stylesheets.</li>
<li>Rename all the divs in your templates.</li>
</ol>

<p>Each option has it's pros and cons. If you start from scratch you will have to redo any additional customisation you have made. If you rename the styles in the stylesheet upgrades may overwrite them, my preferred option is to rename the divs in the template. the following is a non exhaustive list of name changes</p>

<pre><code>banner -&gt; header
banner-inner -&gt; header-inner
banner-header -&gt; header-name
banner-description -&gt; header-description
pagebody -&gt; content
pagebody-inner -&gt; content-inner
</code></pre>

<p>Also the names of the various layouts have been shorten, see my previous post <a href="http://www.composing-stick.net/2008/11/changing-number-of-columns-on-a-page.html">Changing Number of Columns on a Page</a></p>
]]>
        

    </content>
</entry>

<entry>
    <title>How to Make a Clickable Header in Movable Type - Part Two</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2009/01/how-to-make-a-clickable-header-in-movable-type---part-two.html" />
    <id>tag:www.composing-stick.net,2009://1.29</id>

    <published>2009-01-02T21:37:08Z</published>
    <updated>2009-01-02T22:05:51Z</updated>

    <summary>Recently I posted two solutions on how to make a clickable header in Movable Type. I have to admit both were quick and dirty methods rather than elegant solutions, a fact raised by Plasticmind on the Movable Type IRC channel....</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>Recently I posted two solutions on how to make a <a href="http://www.composing-stick.net/2008/10/creating-a-clickable-header-in-movable-type.html">clickable header in Movable Type</a>. I have to admit both were quick and dirty methods rather than elegant solutions, a fact raised by <a href="http://plasticmind.com/">Plasticmind</a> on the Movable Type IRC channel. So to make amends here is part two.</p>

<p>What I should have done is show how to use CSS image replacement techniques to create a clickable header. There are a number of image replacement techniques out there, <a href="http://www.mezzoblue.com/tests/revised-image-replacement/">mezzoblue</a> has full list of all of them, what we are going to look at is listed as the Phark Revisited method or the Plasticmind method.</p>

<p>To make things clear I create a blog and applied the unstyled style, leaving me with the following look.</p>

<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.composing-stick.net/assets_c/2008/12/before2.html" onclick="window.open('http://www.composing-stick.net/assets_c/2008/12/before2.html','popup','width=1263,height=734,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.composing-stick.net/assets_c/2008/12/before-thumb-400x232.png" width="400" height="232" alt="before.png" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></span></p>

<p>As you can see everything is very plain text, now I want a nice font to use form my heading, so I have created an image file called header.png that is 940 x 191 pixels. I have saved this in a directory called resources off of the blog root.</p>

<p>I am going to add a style to the end of styles.css to include an image (header.png) in any links in the header section of the template. To do this I add the following code:</p>

<pre><code>#header-name a{
    display: block;
    background: #fff url("&lt;$mt:blogurl$&gt;/resources/header.png") no-repeat left top;
    width: 100%;
    height: 191px;
}
</code></pre>

<p>The results is this</p>

<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.composing-stick.net/assets_c/2008/12/during2.html" onclick="window.open('http://www.composing-stick.net/assets_c/2008/12/during2.html','popup','width=1263,height=734,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.composing-stick.net/assets_c/2008/12/during-thumb-400x232.png" width="400" height="232" alt="during.png" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></span></p>

<p>The problem, as you can see, is that the unstyled name of the blog and the description are still visible, what we are going to do is shift these off the page. Shifting is better than changing the colour as it gives us more flexibility when swapping out images. We don't have to fiddle with matching the font colour or worrying about parts of the image being blocked out. Our style changes slightly to add a negative text indent and to hide the description.</p>

<pre><code>#header-name a{
    display: block;
    background: #fff url("&lt;$mt:blogurl$&gt;/resources/header.png") no-repeat left top;
    text-indent: -9999px;
    width: 100%;
    height: 191px;
}

#header-description {
    text-indent: -9999px;
}
</code></pre>

<p>The -9999px shifts the text far off screen so that we don't see it. The final result is</p>

<p><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><a href="http://www.composing-stick.net/assets_c/2008/12/after1.html" onclick="window.open('http://www.composing-stick.net/assets_c/2008/12/after1.html','popup','width=1263,height=734,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://www.composing-stick.net/assets_c/2008/12/after-thumb-400x232.png" width="400" height="232" alt="after.png" class="mt-image-center" style="text-align: center; display: block; margin: 0 auto 20px;" /></a></span></p>

<p>a clickable image header and no fiddling with the templates, just a few lines of css.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>New Plugin Project</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/12/new-plugin-project.html" />
    <id>tag:www.composing-stick.net,2008://1.27</id>

    <published>2008-12-07T17:56:35Z</published>
    <updated>2008-12-07T18:19:52Z</updated>

    <summary>This weekend I have been mainly working on a new plugin for MT. It has officially reached &apos;Ugly Alpha&apos; stage which means it is good enough for me to try out in my own environment but I am embarrassed about...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>This weekend I have been mainly working on a new plugin for MT. It has officially reached 'Ugly Alpha' stage which means it is good enough for me to try out in my own environment but I am embarrassed about the quality of the underlying code to post a link. More next week.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Getting Help with Movable Type</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/11/getting-help-with-movable-type.html" />
    <id>tag:www.composing-stick.net,2008://1.26</id>

    <published>2008-11-22T23:31:38Z</published>
    <updated>2008-11-22T23:31:42Z</updated>

    <summary>No matter what the product or service, at some point in time your are going to be staring at a strange error message, a dead television screen or a punctured inflatable novelty toy. Face it, at some point in your...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>No matter what the product or service, at some point in time your are going to be staring at a strange error message, a dead television screen or a punctured inflatable novelty toy. Face it, at some point in your life you are going to need to get help or support.</p>  <p>If you have paid support all you need to do is login at <a href="http://www.movabletype.com">www.movabletype.com</a> and click on the <em>Open a New Ticket</em> link. In my experience the support offered has been timely and accurate.</p>  <p>Without paid support you have two options:</p>  <ol>   <li>Bitch and Whine on your blog, twitter and any number of social media sites. This is a bit like complaining in a coffee shop about the poor performance of you cellphone in the vain hope someone from the manufacturer is in earshot sipping a cappuccino and fixes&#160; it there and then. It probably won't help, but it might make you feel a bit better.     <br /></li>    <li>Go to the community for help.</li> </ol>  <p>There are two sites you can visit to get help from the community,&#160; <a href="http://forums.movabletype.org">forums.movabletype.org</a> and <a href="http://forums.sixapart.com">forums.sixapart.com</a>. </p>  <p>A few suggestions about posting</p>  <ol>   <li><strong>Post Titles.</strong> You should try and summarise your problem in the post title. <em>HELP!!!!</em> doesn't say anything about your problem. <em>Sidebar is pushed to the bottom of entries</em>, gives us more of an idea and maybe someone quickly scanning the forum post titles will see it and know the answer.</li>    <li><strong>The Details.</strong> You should include the version of Movable Type and any other useful information, for example; If you are having problem with your layouts a link to your site is needed. If you are getting 500 errors then the output of mt-check would be useful or knowing that it does not run. </li> </ol>  <p>If your question is complicated then you may need to wait while someone may need to replicate the problem or test a solution. </p>
]]>
        

    </content>
</entry>

<entry>
    <title>Changing Number of Columns on a Page</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/11/changing-number-of-columns-on-a-page.html" />
    <id>tag:www.composing-stick.net,2008://1.25</id>

    <published>2008-11-16T19:51:19Z</published>
    <updated>2008-11-16T19:51:20Z</updated>

    <summary>Movable Type has a number of standard column layouts accessible through the styles menu. This can also be accessed through templates so that you can change layout depending on the content. What you need to do is set the page_layout...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>Movable Type has a number of standard column layouts accessible through the styles menu. This can also be accessed through templates so that you can change layout depending on the content.</p>  <p>What you need to do is set the page_layout at the start of the page like so:</p>  <pre>&lt;MTSetVar name=&quot;page_layout&quot; value=&quot;layout-wt&quot;&gt;</pre>

<p>the value can be any of the following:</p>

<pre>layout-wtt &lt;-- Wide, Thin, Thin
layout-twt &lt;-- Thin, Wide, Thin
layout-wt &lt;-- Wide, Thin
layout-tw &lt;-- Thin, Wide
layout-wm &lt;-- Wide, Medium
layout-mw &lt;-- Medium, Wide</pre>

<p>&#160;</p>

<p>By placing the code in a conditional statement and using private tags you can change the layout of pages or entries just by setting a tag. </p>
]]>
        

    </content>
</entry>

<entry>
    <title>Creating a Clickable Header in Movable Type</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/10/creating-a-clickable-header-in-movable-type.html" />
    <id>tag:www.composing-stick.net,2008://1.23</id>

    <published>2008-10-25T14:40:02Z</published>
    <updated>2008-10-25T18:28:51Z</updated>

    <summary>A question that comes up every so often on the Movable Type message boards is how to create a clickable banner that links back to the blog homepage. The answer depends very much on how the banner has been added...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>A question that comes up every so often on the Movable Type message boards is how to create a clickable banner that links back to the blog homepage. The answer depends very much on how the banner has been added to the page. One way is an img link in the HTML, this can be wrapped in an anchor tag the same way as any other link. Below is a sample Banner Header template that does just that.</p>

<pre><code>&lt;div id="header"&gt;
&lt;div id="header-inner"&gt;
&lt;div id="header-content"&gt;
&lt;mt:Ignore&gt;&lt;!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --&gt;&lt;/mt:Ignore&gt;
&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;img src="&lt;$mt:BlogURL$&gt;header.jpg" alt="&lt;$mt:BlogName encode_html='1'" height="150" width="900"/&gt;&lt;/a&gt;
&lt;mt:If name="main_index"&gt;
&lt;h1 id="header-name"&gt;&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;$mt:BlogName encode_html="1"$&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="header-description"&gt;&lt;$mt:BlogDescription$&gt;&lt;/h2&gt;
&lt;mt:Else&gt;
&lt;div id="header-name"&gt;&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;$mt:BlogName encode_html="1"$&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div id="header-description"&gt;&lt;$mt:BlogDescription$&gt;&lt;/div&gt;
&lt;/mt:If&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>A lot of the default templates that come with Movable Type use CSS to place a header image on the page. If this is the case you will need to use a little piece of JavaScript to achive the same effect. Below is a modified Banner Header template.</p>

<pre><code> &lt;div id="header" onClick="window.location='&lt;$mt:BlogURL$&gt;'"&gt;
 &lt;div id="header-inner"&gt;
 &lt;div id="header-content"&gt;
 &lt;mt:Ignore&gt;&lt;!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --&gt;&lt;/mt:Ignore&gt;
 &lt;mt:If name="main_index"&gt;
 &lt;h1 id="header-name"&gt;&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;$mt:BlogName encode_html="1"$&gt;&lt;/a&gt;&lt;/h1&gt;
 &lt;h2 id="header-description"&gt;&lt;$mt:BlogDescription$&gt;&lt;/h2&gt;
 &lt;mt:Else&gt;
 &lt;div id="header-name"&gt;&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;$mt:BlogName encode_html="1"$&gt;&lt;/a&gt;&lt;/div&gt;
 &lt;div id="header-description"&gt;&lt;$mt:BlogDescription$&gt;&lt;/div&gt;
 &lt;/mt:If&gt;
 &lt;/div&gt;
 &lt;/div&gt;
 &lt;/div&gt;
</code></pre>

<p>All we have done is add an onClick event to the header. Users that click in the header will then trigger the JavaScript which mimics clicking on a link.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>So You Want To Write A Movable Type Plugin?</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/10/so-you-want-to-write-a-movable-type-plugin.html" />
    <id>tag:www.composing-stick.net,2008://1.22</id>

    <published>2008-10-18T13:21:36Z</published>
    <updated>2008-10-18T13:32:40Z</updated>

    <summary>One of the great things about Movable Type is it&apos;s flexibility. Behind the scenes is a powerful system that can be used to expand the functionality offered, plugins. Six Apart have run some training courses on Hacking Movable Type, the...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[One of the great things about Movable Type is it's flexibility. Behind the scenes is a powerful system that can be used to expand the functionality offered, plugins.

Six Apart have run some training courses on Hacking Movable Type, the presentations for this two day course have now been put up on slide share and are a useful resource for those wishing to understand the how to write a Movable Type plugin.

I will be using these as part of a series of posts on creating some simple plugins, these will provide a friendly front end to features that can otherwise achieved through template code. 

<div style="width:425px;text-align:left" id="__ss_658189"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/byrnereese/hacking-movable-type-training-day-1-presentation?type=powerpoint" title="Hacking Movable Type Training - Day 1">Hacking Movable Type Training - Day 1</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=hacking-mt-training-day-1-1224017225109480-9&stripped_title=hacking-movable-type-training-day-1-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=hacking-mt-training-day-1-1224017225109480-9&stripped_title=hacking-movable-type-training-day-1-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" href="http://www.slideshare.net/byrnereese/hacking-movable-type-training-day-1-presentation?type=powerpoint" title="View Hacking Movable Type Training - Day 1 on SlideShare">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/movable">movable</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/type">type</a>)</div></div>

<div style="width:425px;text-align:left" id="__ss_666592"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/byrnereese/hacking-movable-type-training-day-2-presentation?type=powerpoint" title="Hacking Movable Type Training - Day 2">Hacking Movable Type Training - Day 2</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=hacking-mt-training-day-2-1224301754198920-9&stripped_title=hacking-movable-type-training-day-2-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=hacking-mt-training-day-2-1224301754198920-9&stripped_title=hacking-movable-type-training-day-2-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" href="http://www.slideshare.net/byrnereese/hacking-movable-type-training-day-2-presentation?type=powerpoint" title="View Hacking Movable Type Training - Day 2 on SlideShare">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/movable">movable</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/type">type</a>)</div></div>]]>
        
    </content>
</entry>

<entry>
    <title>Learning to Share</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/09/learning-to-share.html" />
    <id>tag:www.composing-stick.net,2008://1.21</id>

    <published>2008-09-21T18:43:06Z</published>
    <updated>2008-09-21T19:01:54Z</updated>

    <summary>Today I have added functionality to this site and to Darren Kenny Paralympic Cyclist that makes it easier for visitors to share the love and add links on facebook, email to friend or just plain blog about it. A little...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="Tips" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>Today I have added functionality to this site and to <a href="http://www.darrenkenny.co.uk">Darren Kenny Paralympic Cyclist</a> that makes it easier for visitors to share the love and add links on facebook, email to friend or just plain blog about it.</p>

<p>A little research showed that there were two main sites offering tools to enable this; <a href="http://www.addthis.com/">AddThis</a> and <a href="http://sharethis.com/">ShareThis</a>. Both have JavaScript that can be added to a page to include a sharing button, both allow some customisation and both can provide user stats. In the end I went with <a href="http://sharethis.com/">ShareThis</a> for one simple reason, this site was up.</p>

<p>The original plan was to test one tool on each site, leave them running for a month or so and compare results. I had registered with both sites earlier in the week as I had wanted to look at the JavaScript and the options available. When I went to <a href="http://www.addthis.com/">AddThis</a> there was no indication on the home page that they were performing maintenance, nothing in the blog and they hadn't emailed me. You just get a simple unstyled page telling you to come back later when you go to your account.</p>

<p>To add the button was easy</p>

<ul>
<li>Register on <a href="http://sharethis.com/">ShareThis</a></li>
<li>Get button code</li>
<li>Create a Module template called ShareThis</li>
<li>Copy code into template and save</li>
<li><p>Go to the Entry template and include the ShareThis module where you need it</p>

<p><$mt:include module="ShareThis"$></p></li>
<li><p>Do the same with the Entry Summary template</p></li>
<li>Rebuild site</li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>What has been happening</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/09/what-has-been-happening.html" />
    <id>tag:www.composing-stick.net,2008://1.20</id>

    <published>2008-09-10T20:15:36Z</published>
    <updated>2008-09-10T20:23:34Z</updated>

    <summary>The last week or so I have spent time on upgrading by brother&apos;s site to run on Movable Type 4.2. The previous site was still running 3.6 with heavily customised web templates that made me put off upgrading until the...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>The last week or so I have spent time on upgrading by brother's site to run on Movable Type 4.2. The previous site was still running 3.6 with heavily customised web templates that made me put off upgrading until the last minute, literally.</p>

<p>The first thing I did was upgrade the back-end, that was easy. The difficult part was that my customised templates did not have any comment code in and I wanted to add commenting ready for the start of the Paralympics games, I was left with no choice but to style the existing templates to match the old style as closely as possible. In the end the new templates went live during the Paralympic opening ceremony. So I give you version 1 of the new style for  <a href="http://www.darrenkenny.co.uk">Darren Kenny, Paralympic Cyclist</a>. There are a few tweaks to do with the styles before I will be happy.</p>

<p>Upgrading the site has given me a lot of material to write up, so before the end of September I will being a series of articles on customising the MTOS classic blog templates, so stay tuned.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Almost Recent Entries</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/08/almost-recent-entries.html" />
    <id>tag:www.composing-stick.net,2008://1.19</id>

    <published>2008-08-28T20:43:43Z</published>
    <updated>2008-08-28T21:02:20Z</updated>

    <summary>There are some things about blogging that just doesn&apos;t make sense, take recent entries as an example. On the front page you have maybe your last 10 posts, next to that you have a recent entries widget showing your last...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>There are some things about blogging that just doesn't make sense, take recent entries as an example. On the front page you have maybe your last 10 posts, next to that you have a recent entries widget showing your last 10 posts, what is the point? Shouldn't it be a teaser to additional content?</p>

<p>The code below is a replacement for the recent entries widget code, Included on the front page it will show the previous 10 entries following the last entry on your index page. While on your archive pages it functions as a 'normal' recent entry widget.</p>

<pre><code>&lt;mt:If name="main_index"&gt;
&lt;mt:SetVarBlock name="entryOffset"&gt;&lt;mt:EntriesCount&gt;&lt;/mt:SetVarBlock&gt;
&lt;mt:else&gt;
&lt;mt:SetVarBlock name="entryOffset"&gt;auto&lt;/mt:SetVarBlock&gt;
&lt;/mt:If&gt;
&lt;mt:If tag="BlogEntryCount"&gt;
    &lt;mt:Entries lastn="10" offset="$entryOffset"&gt;
        &lt;mt:EntriesHeader&gt;
&lt;div class="widget-recent-entries widget-archives widget"&gt;
    &lt;h3 class="widget-header"&gt;Recent Entries&lt;/h3&gt;
    &lt;div class="widget-content"&gt;
        &lt;ul class="widget-list"&gt;
        &lt;/mt:EntriesHeader&gt;
            &lt;li class="widget-list-item"&gt;
                &lt;h4&gt;&lt;a href="&lt;$mt:EntryPermalink$&gt;"&gt;&lt;$mt:EntryTitle$&gt;&lt;/a&gt;&lt;/h4&gt;
                &lt;p&gt;&lt;mt:EntryBody words="25" convert_breaks="0" /&gt;...&lt;/p&gt;
            &lt;/li&gt;
        &lt;mt:EntriesFooter&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/div&gt;
        &lt;/mt:EntriesFooter&gt;
    &lt;/mt:Entries&gt;
&lt;/mt:If&gt;
</code></pre>
]]>
        

    </content>
</entry>

<entry>
    <title>Templating Tricks: Movable Type to Rich Text</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/08/templating-tricks-movable-type-to-rich-text.html" />
    <id>tag:www.composing-stick.net,2008://1.18</id>

    <published>2008-08-27T19:32:34Z</published>
    <updated>2008-08-28T09:17:38Z</updated>

    <summary>A few years ago Six Apart&apos;s Anil Dash posted this article about using Movable Type to generate a Word document of your blog or part of it. It uses WordML to generate a Microsoft Word 2003 formatted documents. This is...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>A few years ago Six Apart's <a href="http://www.dashes.com">Anil Dash</a> posted this article about <a href="http://www.sixapart.com/blog/2004/10/word_docs_from_.html">using Movable Type to generate a Word document</a> of your blog or part of it. It uses WordML to generate a Microsoft Word 2003 formatted documents. This is fine and dandy if you have Word, but what if you don't?</p>

<p>As Anil's post shows, it is very easy for Movable Type to generate any document type that you know the specification, so lets give it a go with another ubiquitous file format; <a href="http://en.wikipedia.org/wiki/Rich_Text_Format">Rich Text Format</a>, the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=DD422B8D-FF06-4207-B476-6B5396A18A2B&amp;displaylang=en">full specification</a> can be downloaded from Microsoft</p>

<p>Below is a simple template which outputs a Rich Text Formatted file showing the last 5 entries from your blog.</p>

<pre><code>{\rtf
{\b &lt;MTBlogName&gt;}
\par
&lt;MTEntries lastn="1"&gt;
Author: &lt;MTEntryAuthorNickname encode_xml="1"&gt;
\par
Modified: &lt;MTEntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"&gt;
\par
&lt;/MTEntries&gt;
\par
\par    
&lt;MTEntries lastn="5"&gt;
{\b &lt;MTEntryTitle&gt;}
\par
&lt;MTEntryBody  convert_breaks="0" remove_html="1"&gt;
\par
\par
&lt;/MTEntries&gt;
}
</code></pre>

<p>you need to create a new custom index template and paste the above code in. Set the output file to recent.rtf. When this template is published it generates a rich text format file at your blog root that contains the last 5 entries in your blog.</p>

<p>This technique can be used for a number of different formats; <a href="http://en.wikipedia.org/wiki/Office_Open_XML">OOXML</a>, <a href="http://en.wikipedia.org/wiki/LaTeX">LaTex</a> or <a href="http://en.wikipedia.org/wiki/OpenDocument">OpenDocument</a> for example. It can also be expanded to include a list of recent comments or limit the report to specific tags, categories or keywords.</p>
]]>
        

    </content>
</entry>

</feed>
