Search Results

From MovableType

This template generates a page showing the results from a blog search.

This template includes the following:

<MTSetVar name="body_class" value="mt-search-results">
<MTSetVar name="system_template" value="1">
<MTSetVar name="search_results_template" value="1">
<MTSetVar name="sidebar" value="1">
<MTSetVarBlock name="page_title">Search Results</MTSetVarBlock>
<MTIfStraightSearch>
<MTSetVar name="search_type" value="search">
<MTElse>
<MTSetVar name="search_type" value="tag">
</MTIfStraightSearch>
<$MTInclude module="Header"$>

Display any search results if there were any

<MTSearchResults>
<MTBlogResultHeader>
<h1 class="search-results-header">
<MTIfStraightSearch>
Results matching “<$MTSearchString$>” from <$MTBlogName encode_html="1"$>
</MTIfStraightSearch>
<MTIfTagSearch>
Results tagged “<$MTSearchString$>” from <$MTBlogName encode_html="1"$>
</MTIfTagSearch>
</h1>
<div class="search-results-container">
</MTBlogResultHeader>
<$MTInclude module="Entry Summary"$>
<MTBlogResultFooter>
</div>
</MTBlogResultFooter>
</MTSearchResults>

No search results were found

<MTNoSearchResults>
<h1 class="search-results-header">
    <MTIfStraightSearch>
    Results matching “<$MTSearchString$>”
    </MTIfStraightSearch>
    <MTIfTagSearch>
    Results tagged “<$MTSearchString$>”
    </MTIfTagSearch>
</h1>
<p>No results found for “<$MTSearchString$>”.</p>
</MTNoSearchResults>

Search instructions

<MTNoSearch>
<h1 class="search-results-header">Instructions</h1>
<p>By default, this search engine looks for all words in any order. To search for an exact phrase, enclose the phrase in quotes:</p>
<blockquote>
    <p><code>"movable type"</code></p>
</blockquote>
<p>The search engine also supports AND, OR, and NOT keywords to specify boolean expressions:</p>
<blockquote>
    <p><code>personal OR publishing</code></p>
    <p><code>publishing NOT personal</code></p>
</blockquote>
</MTNoSearch>
<$MTInclude module="Footer"$>