You Recently Started Using Categories in Your MovableType Blog...

| No Comments | No TrackBacks

... and now you get errors when adding new entries?

This is a very common problem. It's a shame the MT system doesn't tell you what you should have done first in order to avoid this problem, and the error message you receive doesn't help you solve the problem at all. But it's easily fixed. This version is for MT 3.2.

Go to Settings -> Publishing, then scroll down to "Archive Mapping," and make sure the box next to "Category" is checked. Save your changes.

You can rebuild your site now, and the error should go away. If you'd like to add a bit of code that tells your readers what cagetory each item is filed under, do the following:

Look for the following line of code:

<pre></MTEntryIfAllowPings>

It's about 1/4 of the way down. Hit CTRL-F to search for /MTEntryIfAllowPings

After it, insert the following:

<br>(Filed under <a name="<$MTEntryID pad="1"$>"></a>
<MTEntryCategories glue=", ">
<a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a>
</MTEntryCategories>)

The spacing here will probably be different from what you see, but the spacing doesn't really matter.

Once you've made the changes, that region of code should read...

</MTEntryIfAllowPings>
<br>(Filed under <a name="<$MTEntryID pad="1"$>"></a>
<MTEntryCategories glue=", ">
<a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a>
</MTEntryCategories>)
</div>

</div>


</MTEntries>
</pre>
Save your changes, and rebuild as before.

No TrackBacks

TrackBack URL:

Leave a comment

About this Entry

This page contains a single entry by Admin published on April 2, 2006 9:48 PM.

Video Game on Mideast Politics Raises Ethical Questions was the previous entry in this blog.

Nature of News is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.