Using Unique Category Templates in Movable Type
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.
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
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
[...] Using Unique Category Templates in Movable Type - I only switched to Wordpress recently - five years ago I was using Movable Type and over the years I would publish a number of popular articles on optimizing its use, as well as develop some plugins. I haven’t gotten into that yet with Wordpress but I could see doing so. This article describes something that is pretty easy nowadays - using different templates based on category. [...]