Help - Search - Members - Calendar
Full Version: including excluding categories in archive index
Movable Type Community Forum > Additional Resources > Tips and Tricks
Steph-Tara
Here is what I'm trying to do:

CODE
<p>Mois</p>
<MTArchiveList archive_type="Monthly">
<a href="/dojo/<$MTArchiveDate format="%Y/%m"$>/"><$MTArchiveTitle$></a><br />
</MTArchiveList>

<p>Articles</p>
<MTArchiveList category="Dojo AND Articles">
<a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a><br />
</MTArchiveList>

<p>News</p>
<MTArchiveList category="Dojo">
<MTIfNotCategory name="Articles">
<a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a><br />
</MTIfNotCategory>
</MTArchiveList>


The first block works ok. In the second block, I want to list posts which are in the category "Dojo" and in the category "Articles". In the third block, those that are in the category "Dojo" and not in the category "Articles".

Anybody have a hint as to which direction I should look into?

Thanks
girlie
The category attribute is not valid for MTArchiveList - it's used with MTEntries only.

You could try this:

CODE
<p>Articles</p>
<MTEntries category="Dojo AND Articles">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br />
</MTEntries>
Steph-Tara
I see the idea... so what exactly is the point of MTArchiveList? What can you do with it that you can't with MTEntries?
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.