rkaufman4
Aug 7 2002, 05:33 PM
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
Aug 7 2002, 05:47 PM
Um, MTArchiveTitle??
Or even MTArchiveCategory.
Georgina
Aug 7 2002, 07:52 PM
<$MTArchiveCategory$> is what I use, and it works a treat.
medic119
Aug 8 2002, 06:13 AM
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
Jun 16 2004, 10:16 PM
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
Jun 16 2004, 10:42 PM
superblue
Jun 24 2004, 02:24 AM
Fantastic
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.