mteval
Processes the input string for any MT template tags and returns the output.
Example ΒΆ
Add the
mtevalattribute to the<mt:PageBody>and<mt:PageMore>tags in your Page archive template:So these tags…
<$mt:PageBody$> <$mt:PageMore$>…become:
<$mt:PageBody mteval="1"$> <$mt:PageMore mteval="1"$>Create a page and place the following code within the body of the page. Yes, you read that correctly, put MT tags into the body of a new page.
<p>Latest 3 entries are...</p> <ul> <mt:Entries lastn="3"> <li><$mt:EntryTitle$></li> </mt:Entries> </ul>Publish the page and view the result!
Note: When a new entry is created MT will not know to republish this page, so this is kind of a bad example… but it shows how the feature works. It’s also bad practice because you should separate the code and the content of the site otherwise some user will eventually tinker with it and break it… but then they’ll call you and PayPal you butloads of cash to fix it… so I guess it’s not that bad.

Su
January 27, 2009 9:15 AM | Reply
This modifier duplicates, and obviates, the behavior of the old Process Tags plugin. See my comment on the plugin itself for details.
Jay Allen
January 27, 2009 8:10 PM | Reply
Use it with care. It is not a panacea and has potentially both security and performance implications which you should understand before using it. That said, it's highly useful when used in moderation and with full knowledge of its powers and potential for misuse.