« Kenya: In Retrospect | Main | Subliminal Messages as New Technology: A Frightening Thought! »
Found a Fix for the MTEntryNext Tag
In the latest version of MovableType, 3.34, and a few of the earlier versions, the MTEntryNext tag was broken on dynamic archive templates. The fix was relatively simple, too.
In the mt/php/lib directory, you'll find lots of PHP scripts for Smarty replacement tags. The block.MTEntryNext.php file configures the arguments to fetch_entries and assigns them to the $args variable as an array. The value of lastn should not be set to 1. That limits the entire set of entries to just the last 1, so the result is always the last one, which is always the most recent post.
So, for the longest time, all of my individual entries have had a link to the main page, the previous article, and my most recent article. Commenting this line out (with "//") has fixed this issue. Hopefully Six Apart will have this resolved in the next version.
Since this was an issue in the Smart replacement tag, it only affect dynamic templates and not statically published templates. And no, I didn't discover this on my own. I don't have that much time on my hands. ;) This forum posting at Six Apart's site helped out.
Posted by Shane on March 14, 2007 8:10 AM | Permalink
TrackBacks
http://www.kf6nvr.net/mt/kf6nvr-tb.cgi/789
