hidden doors reset

main index

The main index for hidden doors is pretty much unchanged from before. Instead of the default entry view it shows category title, category description and a horizontal listing of individual entries. In other words: story title, story information and chapter headings.

With the new modular system the main index template is so much cleaner:

<MTSetVar name=”body_class” value=”mt-main-index”>
<MTSetVar name=”main_template” value=”1”>
<MTSetVar name=”main_index” value=”1”>
<MTSetVar name=”sidebar” value=”1”>
<MTSetVar name=”module_recent_entries” value=”1”>
<MTSetVar name=”module_category_archives” value=”1”>
<MTSetVar name=”module_author_archives” value=”1”>
<MTSetVar name=”module_monthly_archives” value=”1”>

<$MTInclude module=”Header”$>

<$MTInclude module=”Disclaimer”$>

<$MTInclude module=”Categories Summary”$>

<div class=”content-nav”>
<a href=”<$MTLink template=”archive_index”$>”>archives</a>

<$MTInclude module=”Footer”$>

I created 2 new modules. The disclaimer is just text contained in a box. Categories summary is a modification of the default category listing that is usually found in the sidebar. Hardly any change from 3.35.

<MTIfNonZero tag=”MTCategoryCount”>
<div class=”asset-header”>
<h2 class=”asset-name”><a href=”<$MTCategoryArchiveLink$>”
<div class=”asset-content”>
<MTEntries sort_by=”title” sort_order=”ascending” glue=” | “>
<a href=”<$MTEntryPermalink$>”><$MTEntryTitle$></a>
</MTEntries> | <a href=”<$MTBlogURL$>download.php” title=”download”>downloads</a>
<h1 class=”archive-title”><MTCategoryLabel></h1>



So happily I went off to publish, expecting a similar look to before. And I tried again. And again. And again. What was wrong? The entries simply refused to list in ascending order even though I’d specified MTEntries sortby=”title” sortorder=”ascending”. It turns out that it’s a known issue. How ridiculous is that? They’re at version 4 and they can’t get something this simple to work?


entry listing archive

Normally this is the “Recently in [category] category” page that shows full entries. My modification is to use this archive template to list all chapters in one story.

<MTSetVarBlock name=”body_class”>mt-archive-listing mt-<MTVar name=”archive_class”></MTSetVarBlock>
<MTSetVar name=”sidebar” value=”1”>
<MTSetVar name=”module_about_context” value=”1”>

<MTSetVarBlock name=”page_title”><$MTArchiveTitle$></MTSetVarBlock>

<$MTInclude module=”Header”$>

<h1 class=”archive-title”>
<MTUnless name=”datebased_archive”>
<MTIfArchiveType archive_type=”Category”>
<MTIfArchiveType archive_type=”Author”>
Recently by <em><$MTArchiveTitle$></em>
<$MTGetVar name=”page_title”$>
<MTIf name=”datebased_archive”>
<$MTInclude module=”Entry excerpt”$>
<MTEntries limit=”auto”>
<$MTInclude module=”Entry excerpt”$>

<div class=”content-nav”>
<a href=”<$MTArchiveLink$>”>« <$MTArchiveTitle$></a> |
<a href=”<$MTLink template=”main_index”$>”>Main Index</a> |
<a href=”<$MTLink template=”archive_index”$>”>Archives</a>
| <a href=”<$MTArchiveLink$>”><$MTArchiveTitle$> »</a>

<$MTInclude module=”Footer”$>


I added an include for category description and created a new module called entry excerpt. This is based on entry summary, changing MTEntryBody to MTEntryExcerpt. Word count (so important!) is from the mt-wordcount plugin. which I’ve used since I started with mt.

<div id=”entry-<$MTEntryID$>” class=”entry-asset asset”>
<div class=”asset-area”>
<div class=”asset-title”><a href=”<$MTEntryPermalink$>”><$MTEntryTitle$></a></div>
<MTIfNonEmpty tag=”EntryBody”>
<div class=”asset-area”>
<$MTEntryExcerpt$> <br />
Date: <$MTEntryDate format=”%e %B %Y”$><br />
Word count: <$MTWordCount$> words<br />

<$MTInclude module=”Tags”$>
<MTIfNonEmpty tag=”EntryMore” convert_breaks=”0”>
<div class=”asset-more-link”>
continue reading <a href=”<$MTEntryPermalink$>#more”><$MTEntryTitle$></a>.

archive page

Lists all entries in chronological order. Since I use simple entry titles (“part 06”) it’s not a very useful page.


The new feature in mt4 is the about blurb at the top of the sidebar. Sometimes it’s useful. I changed the wording somewhat to reflect that I have stories and chapters instead of categories and entries. For the single entry archive I had to re-implement the previous next in category plugin. I’m glad it still works with mt4. Simple substitutes for MTEntryPrevious and MTEntryNext and a little change in formatting.

<p><a href=”<MTEntryPermalink>” title=”Previous in category”>« <MTEntryTitle></a> |
<a href=”<MTEntryPermalink>” title=”Next in category”><MTEntryTitle> »</a></p>

I suppose the single entry page shouldn’t have a sidebar, but whatever.