Using Unique Category Templates in Movable Type

by john on March 1, 2003

If you click on the Book Reviews category archive link in the links section of my main page you will notice that the page layout looks different than any of the other category archives. In my site redesign I wanted to move the book images off of the main page and the category archive seemed a logical place.

However, I could not find a way using Out Of The Box Movable Type to resolve this issue. But by leveraging the Compare plugin and MT Template Modules I was able to accomplish this.

I put the code I wanted for the sidebar in a template module called “booksbar” and then included the following code in my category archive template:

<MTIfEqual a="[MTArchiveCategory]" b="Book Reviews">
<$MTInclude module="Booksbar"$>
</MTIfEqual>

This was my first exposure to using MT Template Modules and I’m finding other areas to use them in as well – a very useful feature.

{ 2 comments }

Joe Grossberg March 3, 2003 at 2:17 pm

What is the Big Deal with MT?

John figures out how to do something in MovableType that should be trivial. But, as he says (using the acronym

Joe Grossberg March 6, 2003 at 2:27 pm

What is the Big Deal with MT?

John figures out how to do something in MovableType that should be trivial. But, as he says (using the acronym

{ 1 trackback }

Previous post:

Next post: