Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>IfArchiveType is fine if you know you're <em>only</em> going to be doing one test.<br> With a meta description, on the other hand, there's a good chance you'll want to do something different on category pages, say. While you could just pile up individual IfArchiveType tests for each, you'd do better to familiarize yourself with the <a href="http://www.movabletype.org/documentation/designer/archive-template-variables.html" rel="nofollow">archive template variables</a>(which provide a lot more besides) and use the generalized If/Else|If tags:</p> <pre><code>&lt;mt:if name="entry_archive"&gt; &lt;meta name="description" content="[Entry archive-specific description]" /&gt; &lt;mt:elseif name="category_archive"&gt; &lt;meta name="description" content="[Category archive-specific description]" /&gt; &lt;mt:else&gt; &lt;meta name="description" content="[Site-wide fallback description]" /&gt; &lt;/mt:if&gt; </code></pre> <p>...which can then be further cleaned up using the Var tag:</p> <pre><code>&lt;mt:if name="entry_archive"&gt; &lt;$mt:var name="metaDesc" value="[Entry archive-specific description]"$&gt; &lt;mt:elseif name="category_archive"&gt; &lt;$mt:var name="metaDesc" value="[Category archive-specific description]"$&gt; &lt;mt:else&gt; &lt;$mt:var name="metaDesc" value="[Site-wide fallback description]"$&gt; &lt;/mt:if&gt; &lt;meta name="description" content="&lt;$mt:var name="metaDesc"$&gt;" /&gt; </code></pre> <p>[For clarity, I've omitted the modifiers Mike added, but they are a good idea to include.]</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload