| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Movable Type
Revision: 3062
Author: bsmith
Date: 25 Sep 2008 13:54:17
Changes:Diff:| ... | ...@@ -632,6 +632,38 @@ | |
| 632 | 632 | |
| 633 | 633 | Processes the input string for any MT template tags and returns the output. |
| 634 | 634 | |
| 635 | B<Example:> | |
| 636 | ||
| 637 | 1. Add the `mteval` attribute to the <mt:PageBody> and <mt:PageMore> tags | |
| 638 | in your Page archive template so these tags... | |
| 639 | ||
| 640 | <$mt:PageBody$> | |
| 641 | <$mt:PageMore$> | |
| 642 | ||
| 643 | ...become: | |
| 644 | ||
| 645 | <$mt:PageBody mteval="1"$> | |
| 646 | <$mt:PageMore mteval="1"$> | |
| 647 | ||
| 648 | 2. Create a page and place the following code within the body of the page. | |
| 649 | Yes, you read that correctly, put MT tags into the body of a new page. | |
| 650 | ||
| 651 | <p>Latest 3 entries are...</p> | |
| 652 | <ul> | |
| 653 | <mt:Entries lastn="3"> | |
| 654 | <li><$mt:EntryTitle$></li> | |
| 655 | </mt:Entries> | |
| 656 | </ul> | |
| 657 | ||
| 658 | 3. Publish the page and view the result! | |
| 659 | ||
| 660 | B<Note:> When a new entry is created MT will not know to republish this page, | |
| 661 | so this is kind of a bad example... but it shows how the feature works. It's | |
| 662 | also bad practice because you should separate the code and the content of the | |
| 663 | site otherwise some user will eventually tinker with it and break it... but | |
| 664 | then they'll call you and PayPal you butloads of cash to fix it... so I guess | |
| 665 | it's not that bad. | |
| 666 | ||
| 635 | 667 | =cut |
| 636 | 668 | |
| 637 | 669 | sub _fltr_mteval { |