<mt: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:
This page was last updated on 2009-04-24, 17:59.
Leave a note
Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.