Changes from the previous version of the Entry plugin:
- Finally tested on MT 3.0 (works just fine)
- Added the ability to select the first or last entry by specifying the
idas 'first' or 'last'
<MTEntry id="first">
First entry in the blog here.
</MTEntry>
<MTEntry id="last">
Last entry in the blog here.
</MTEntry>
True, the 'last' effect can be achived using MTEntries with lastn equal to 1, but trying to get to the first entry of the blog with MTEntries does not work (i.e. you can either set lastn equal to 1 or sort_order to ascend, but not both). Since I was implementing the 'first' ability, I figured I might as well include the ability to get the last entry as well. It was only two more lines of code. :)
Download one of the following:
And install entry.pl into your plugins/ directory.
Wow quicker than I expected, thanks :)