MT4.1 will introduce a new container tag, SetVars (plural), for easily doing multiple variable assignments in "key=value" pair format. With the heavy use of SetVar in the latest version of the default templates, I guess the engineers got sick of typing MTSetVar over and over.

For a quick demonstration, paste the following into an index template of your test installation of the 4.1beta or MTOS code, and rebuild:


<MTSetVars>
foo=one
baz=2
</MTSetVars>
<p>The value of variable "foo" is: <$MTGetVar name="foo"$></p>
<p>The value of variable "bar" is: <$MTGetVar name="baz"$></p>

December 18, 2007 11:55 PM

Powered by Movable Type 4.1n and a growing collection of plugins

Syndication