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>
</div>

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

<MTTopLevelCategories>
<MTSubCatIsFirst></MTSubCatIsFirst>
<MTIfNonZero tag=”MTCategoryCount”>
<div class=”asset-header”>
<h2 class=”asset-name”><a href=”<$MTCategoryArchiveLink$>”
title=”<$MTCategoryLabel$>”><MTCategoryLabel></a></h2>
</div>
<$MTCategoryDescription$>
<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>
</div>
<MTElse>
<h1 class=”archive-title”><MTCategoryLabel></h1>
</MTElse>
</MTIfNonZero>

<MTSubCatsRecurse>
<MTSubCatIsLast></MTSubCatIsLast>
</MTTopLevelCategories>

 

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?

Blimey.

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”>
<em><$MTArchiveTitle$></em>
</MTIfArchiveType>
<MTIfArchiveType archive_type=”Author”>
Recently by <em><$MTArchiveTitle$></em>
</MTIfArchiveType>
<MTElse>
<$MTGetVar name=”page_title”$>
</MTUnless>
</h1>
<$MTCategoryDescription$>
<MTIf name=”datebased_archive”>
<MTEntries>
<$MTEntryTrackbackData$>
<$MTInclude module=”Entry excerpt”$>
</MTEntries>
<MTElse>
<MTEntries limit=”auto”>
<$MTEntryTrackbackData$>
<$MTInclude module=”Entry excerpt”$>
</MTEntries>
</MTIf>

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

<$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 />

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

archive page

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

about

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.

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

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