Adding Categories to your MT Blog

| No Comments | No TrackBacks

First, tell MT you want to archive your entries according to category.

Weblog Config -> Archiving -> Check "Category"

Then, add a bit of code into the template.

Remember to back up the existing template (copy the text to another file) before you monkey with it too much.


Change Tempate

Templates -> Main Index

Look for the following line of code:

</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>)

I can't get the spacing to replicate itself accurately, but 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>


No TrackBacks

TrackBack URL:

Leave a comment

About this Entry

This page contains a single entry by Admin published on September 25, 2003 4:32 PM.

And today's show is brought to you by... was the previous entry in this blog.

SHU Scores $400K Construction Grant is the next entry in this blog.

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