Help - Search - Members - Calendar
Full Version: displaying individual category labels
Movable Type Community Forum > Additional Resources > Tips and Tricks
rkaufman4
I want the label of each category to appear at the top of each category archive, as a title. Everything I try yields a list of *all* the categories. How do I display just *this* category? I want to avoid creating custom index pages for each category.

thanks!
girlie
Um, MTArchiveTitle??

Or even MTArchiveCategory.
Georgina
<$MTArchiveCategory$>  is what I use, and it works a treat.
medic119
Here is the code snippet from my blog Category Archives.

In the header of the page it adds the lines
Category: Stuff {Stuff Icon}
To the top of Category Page.  If you want you can check it out Here under archives.

CODE
<div class="pagetitle">Category: <$MTArchiveCategory$> <IMG SRC="/PATH_TO_ICONS/<$MTArchiveCategory dirify='1'$>.gif" alt="<$MTArchiveCategory$>" border=0>
</div>
superblue
Actually, I'm struggling with this too. I want to display the category label on the Individual archive page, and neither MTArchiveTitle, nor MTArchiveCategory seem to work.

The former displays the entry title, the latter doesn't seem to do anything. Plain old MTCategoryLabel gives me the data I want, but throws in labels for every other category too...

A workaround I'm using is the "if category" plugin - but that means I have to add new lines to templates every time I add or change a category... doesn't seem too smart.

Any suggestions?
maddy
MTEntryCategory. smile.gif
superblue
Fantastic wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.