Help - Search - Members - Calendar
Full Version: Category Archives for dummies
Movable Type Community Forum > Additional Resources > Tips and Tricks
scottmt
Hi! Hope i dont get booed for the ulta-noob question.

All I want is a list in my sidebar that has each category and under those a list for each entry in that category.

help me movabletype.org forums, you're my only hope.

thanks tons in advance everyone - peace!
jayseae
Try something like this:

CODE
<MTArchiveList archive_type="Category">
<MTEntries>
<$MTEntryTitle$><br />
</MTEntries>
</MTArchiveList>

Add formatting/links/etc as needed.
ited
Hi,
I pasted the above code into my main index page/template, just as it appears above.
When I tried to build it I got:

"Build error in template 'Main Index': Error in tag: The archive type specified in MTArchiveList ('Category') is not one of the chosen archive types in your blog configuration."

What does it mean and how do I fix it?

please and thanks.
arvind
Go to your weblog config > Archving > then check the categories archives. After that on the mt sidebar click categories. Add all the cateogy name you want. Then put entries in those categories and then rebuild your whole site !
SaraD
QUOTE (jayseae @ Sep 24 2003, 11:15 AM)
Try something like this:

CODE
<MTArchiveList archive_type="Category">
<MTEntries>
<$MTEntryTitle$><br />
</MTEntries>
</MTArchiveList>

Add formatting/links/etc as needed.

please backup on this. Add links? To what?

any help much appreciated.
jayseae
QUOTE
please backup on this. Add links? To what?


Add whatever formatting or whatever you might like to include in the list. If you want each entry to be a link, add the appropriate anchor tags. If you want to format them in a certain color, add style references. That sort of thing. This snippet just produces a list - it doesn't do anything fancy, such as the links or the styling or whatever.
youthurban
Alternative:

I've used a 'Jump Menu'. Take a looK.

The code used--

CODE
<form action="" >
<select onchange="document.location=options[selectedIndex].value;" style="background-color:#333;font-size:9;color:#FFF;font-family:arial, helvetica, sans-serif">
<option value="">PICK</option>
<MTArchiveList archive_type="Category">
<option value="<$MTArchiveLink$>"><$MTArchiveTitle$></option>
</MTArchiveList>
</select>
<noscript><input type="submit" value="go" /></noscript>
</form>


--Alternative
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.