Code Samples

The snippets below cause exclusion of any postings in categories Drafts or Private from the current list or index. When you want to publish an article to the world, just change the category and rebuild your indexes.

Keep in mind that these samples are snipped from my templates; your version may vary.

Main Index

plugin: MTCatEntries

replace <MTEntries> ... </MTEntries>
with <MTCatEntries ...> ... </MTCatEntries>

example:
<MTCatEntries exclude="Private,Drafts" lastn="5">
...
</MTCatEntries>

Main Index

plugin: MTFilterCategories

Insert <MTFilterCategories ...> ... </MTFilterCategories>
within <MTCategories>...</MTCategories>
example:
<div class="sidetitle">
  Categories
</div>

<div class="side">
 <MTCategories>
 <MTFilterCategories exclude="Drafts|Private">
  <a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a><br>
 </MTFilterCategories>
</MTCategories>

Date-Based Archive

plugin: Compare Plugin (MTIfNotEqual)

Insert <MTIfNotEqual ...> ... </MTIfNotEqual>
within <MTEntries>...</MTEntries>

example:

<MTEntries>
<MTIfNotEqual a="[MTEntryCategory]" b1="Drafts"  b2="Private">
  <$MTEntryTrackbackData$>

  <MTDateHeader>
  ...
</MTIfNotEqual>
</MTEntries>

Master Archive Index

plugin: MTCatEntries

replace <MTEntries> ... </MTEntries>
with <MTCatEntries ...> ... </MTCatEntries>

example:

<H2>Past Entries (reverse chronological order)</H2>
<MTCatEntries exclude="Private,Drafts">
<a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a><br />
</MTCatEntries>