<mt:SetHashVar>
A block tag that is used for creating a hash template variable. A hash is a variable that stores many values. You can even nest SetHashVar tags so you can store hashes inside hashes for more complex structures.
Example:
<mt:SetHashVar name="my_hash">
<$mt:Var name="foo" value="bar"$>
<$mt:Var name="fizzle" value="fozzle"$>
</mt:SetHashVar>
Then later:
foo is assigned: <$mt:Var name="my_hash{foo}"$>
inspiraller
July 29, 2010 12:36 AM | Reply
For anyone reading the above, I spent several hours trying to figure out why I could never get this to work and then discovered the solution.
The above example is wrong.
When setting the variable it should be set like this:
<mt:SetHashVar name="blog_lang"> <mt:setVar name="foo" value="bar"/> <mt:setVar name="fizzle" value="fozzle"/> </mt:setHashVar>