Not a developer? Go to MovableType.com

Documentation

SetVarTemplate

Similar to the SetVarBlock tag, but does not evaluate the contents of the tag, but saves it for later evaluation, when the variable is requested. This allows you to create inline template modules that you can use over and over again.

Attributes:

  • var or name (required)

    Identifies the name of the template variable. See Var for more information on the format of this attribute.

Example:

    <mt:SetVarTemplate name="entry_title">
<h1><$MTEntryTitle$></h1>
</mt:SetVarTemplate>

<mt:Entries>
<$mt:Var name="entry_title"$>
</mt:Entries>

Related Tags:


Back