-
1)
Your sample code doesn’t close the MTCategoryID tag.
-
2)
It seems like I am already using Category Description in my category templates. Am I missing something that this plugin does that the default category archives already enables?
Thanks :)
-
3)
Really, Kristine? I couldn’t find a way to get Category Description to work in the Category archive. This should fix the problem.
-
4)
I have a catergory “Web Links” and I don’t want them to display all the links on my main page, so I want to exclude them with MTIfNotCategoryOfArchive, but it is still displaying the links. Could you tell me what I’m doing wrong?
my code:
<MTCategories>
<MTIfNotCategoryOfArchive category=”Web Links”>
<h2><$MTCategoryLabel$></h2>
<MTEntries lastn=”2”>
</MTEntries>
</MTIfNotCategoryOfArchive>
</MTCategories>
-
5)
Thank you so much for this plugin. I have spent the last hour cursing the fact that MT couldn’t output the Category ID from within the archive for the same Category! :-) After trying a bunch of workarounds (that didn’t work), I went looking for a plugin…. Thanks again.
-
6)
How make it in a select form?
-
7)
Great plugin!!
I’m trying to use it with a glue attribute in MTEntryCategories, for example:
This Entry is also posted in the following categories:
<MTEntryCategories glue=”, “>
<MTIfCategoryOfArchive></MTIfCategoryOfArchive>
<MTIfNotCategoryOfArchive><$MTCategoryLabel$></MTIfNotCategoryOfArchive>
</MTEntryCategories>
It is still adding a comma for the primary category that is not displayed, resulting in something like this:
also posted in: , category2, category3
Anyone have any suggestions?
-
8)
Thank you, thank you, thank you! :-)
I spent seven hours staring at code and trying to massage it to get it to do what I wanted; I found your plugin completely by accident and in less than 15 minutes, I got what I had been trying to get since 2pm this afternoon.
(And when I have money, because I am a poor graduate student, I will send you a little something because you have so saved my sanity! :-))
-
9)
Can you give us an example of what this category archive plugin does (i.e. on an example blog)? Looks interesting but I’m not sure if I understand fully…
-
10)
If you scroll back up, you’ll see an example of what this plugin does. Right up there, where it says “Example”…
-
11)
Regarding my previous comment (# 7) I’m revisiting the problem I’m having while using a glue attribute with this plugin. I thought that perhaps doing something like this:
<MTEntryCategories glue=”, “>
<MTIfCategoryOfArchive>123RIPME</MTIfCategoryOfArchive>
<MTIfNotCategoryOfArchive><$MTCategoryLabel$></MTIfNotCategoryOfArchive>
</MTEntryCategories>
I could then use Choate’s Regex plugin to remove any instance of “123RIPME ,”
BUT - this will not work, because on certain category archives this will become “, 123RIPME” and even some other variations of this. Any ideas?
-
12)
You really don’t want to use glue if you have conditional content like this. You’d be better setting up a glue variable and updating it inside your conditional text, something along these lines:
<MTSetVar name="glue" value="">
<MTEntryCategories>
<MTIfNotCategoryOfArchive>
<MTGetVar name="glue"><$MTCategoryLabel$><MTSetVar name="glue" value=", ">
</MTIfNotCategoryOfArchive>
</MTEntryCategories>
-
13)
Perfect, that worked beautifully! Thanks for the quick response.
-
14)
Is there any way to make this work with the MTParentCategories tag as I have attempted at http://www.californiacanopies.com/index2.php ?
(like this:)
<MTTopLevelCategories>
<MTSubCatIsFirst><ul></MTSubCatIsFirst>
<MTIfNonZero tag="MTCategoryCount"><li<MTIfCategoryOfArchive>
class="current"</MTIfCategoryOfArchive>><a href="<$MTCategoryArchiveLink$>"
title="<$MTCategoryDescription$>"><MTCategoryLabel></a><MTElse><li<MTIfCategoryOfArchive>
class="current"</MTIfCategoryOfArchive>><MTCategoryLabel></MTElse></MTIfNonZero><MTSubCatsRecurse
max_depth="3"></li>
<MTSubCatIsLast></ul></MTSubCatIsLast></MTTopLevelCategories>
Thanks!
-Steve
-
15)
Thank you for this pluing :-)
-
16)
Fantastic plugin and does exactly what I want… The only thing I would love to see is the category= statement supporting the binary comparisons (i.e. OR and AND), similar to the below:
But it’s not the end of the world… it certainly has helped me with a problem in my category pages where I want to provide a different page style for certain categories.
:)
-
17)
Bless you, Stepan. This function ought to be inherent in Movable Type. Thank you for providing it!
-
18)
Hi, I used the code and it is working perfectly inside the category archive.
Although I m trying to make this plug-in works in the Category menu on my individual entries archives but it is not working.
I would like to have the same highlighted Category for each entry.
I m using in my Individual Entry Archive:
<MTTopLevelCategories>
<MTFilterCategories exclude="Upcoming Events">
<ul>
<li><MTIfCategoryOfArchive><a href="#" ><b><$MTCategoryLabel$></b>
</MTIfCategoryOfArchive></li>
<li>
<MTIfNotCategoryOfArchive>
<a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a></MTIfNotCategoryOfArchive>
</li>
</ul>
</MTFilterCategories>
</MTTopLevelCategories>
The category for the Entry is not appearing in bold.
What Am I doing wrong?
-
19)
Thanks for putting this out there. Your plugin has ended almost 2 hours of poking + prodding Movable Type, trying to get it to do the right thing. Grabbed your plugin, dropped it into my plugins directory, added some tags to my category page template and presto!, I’m done. Thanks again.