Tag: blogging

Upgrade your Subcategories Plugin

A few days ago, I deleted 2 MovableType categories that did not have any entries in them. The next time I tried to publish an entry, I got this error:


Can't call method "label" without a package or object reference at plugins/sub_cats.pl line 67

It turns out that the Subcategories plugin could not deal with non-continuous numbering of category id’s. Deleting the two categories caused gaps at #3, and #11.

I did a quick search and came up with this page:
Comments on SubCategories version 0.2.1

Continue reading

Subcategories in MoveableType

David Raynes just came out with a great new plugin for MoveableType: “SubCategories” Get itHere

Code for the subcategories list on my main index page


<MTSubCategories show_empty="0">
<MTSubCatIsFirst><ul></MTSubCatIsFirst>
<li>
<a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a><br>
<MTSubCatsRecurse>
</li>
<MTSubCatIsLast></ul></MTSubCatIsLast>
</MTSubCategories>

Continue reading

A couple of ways to post code in MoveableType

Thanks to the helpful folks on the MoveableType support forum I now have a couple of ways to post code in my entries.
NOTE: because my new multi-column layout creates issues with form fields in Safari, I’ve also included links to download the code.

1. Install Brad Choates macro plugin, and use it to escape the HTML. Insert this into your templates:

CODE (or download it here)

<MTMacroDefine pattern="m/[code](.+?)[/code]/si">

<pre><MTMacroMatch position="1" encode_html="1"></pre>

</MTMacroDefine>

Continue reading