tips and tricks for movable type

list other category links in category archive
December 29, 2002

This code by Kevin Shay will generate a list of links to your other category archives, with the current category non-linked. Requires two plugins: Compare and MTSetVarBlock.

<MTSetVarBlock name="this_cat"><$MTArchiveCategory$></MTSetVarBlock>
<MTArchiveList archive_type="Category">
<MTIfEqual a="[MTGetVar name='this_cat']" b="[MTArchiveTitle]">
<$MTArchiveTitle$>
</MTIfEqual>
<MTIfNotEqual a="[MTGetVar name='this_cat']" b="[MTArchiveTitle]">
<a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a>
</MTIfNotEqual>
(<$MTArchiveCount$>)<br />
</MTArchiveList>

Found in this MT support forum thread.

Comments

Very good plugin. Just what i needed.

by Joakim | 03.18.03 03:40 AM

Thank you! This is perfect!!

by Solonor | 03.18.03 10:37 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 1
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/127)

» Highlighting entry date
Excerpt: In MT, there isn’t any way to highlight the entry’s date on the calendar. Default MT tags only allow you to highlight dates with entries or today’s date (this only works if you publish on the day). So I went...
Weblog: . cynics' - /mak'in-trash`/ .
Tracked: 09.09.03 05:04 AM