Hello,
I'm looking to integrate some code onto my site that with give users the ability to go to the next/prevous most recent entry within the same category they are in. Once they've reached the end of the entries in that category, they are provided with a link to the next most recent entry in the next alphabetically category (the link will include the category name).
Can anyone help me with this? I haven't found the perfect documentation for what I need yet.
Thanks!
Bryan
Reported on Movable Type 5

I found a Japanese blog post explaining how to do it.
http://bizcaz.com/archives/2008/06/24-020410.php
You can use this example in mt:Entries or Entry Archive.
<mt:IfNonEmpty tag="EntryCategory"> <$MTEntryCategory setvar="entcat"$> <$MTEntryDate format="%Y%m%d%H%M%S" setvar="curdate"$> <$mt:SetVar name="entall" value="0"$> <MTEntries category="$entcat"> <mt:SetVarBlock name="entdate[$entall]"><$MTEntryDate format="%Y%m%d%H%M%S"$></mt:SetVarBlock> <mt:SetVarBlock name="entname[$entall]"><$MTEntryTitle$></mt:SetVarBlock> <mt:SetVarBlock name="entlink[$entall]"><$MTEntryPermalink$></mt:SetVarBlock> <$mt:SetVar name="entall" value="1" op="+"$> </MTEntries> <ul> <mt:For var="x" from="0" to="$entall" increment="1"> <mt:If name="entdate[$x]" eq="$curdate"> <mt:SetVarBlock name="idx"><$mt:GetVar name="x" value="1" op="+"$></mt:SetVarBlock> <mt:If name="idx" lt="$entall"> <li class="list_entry">Prev Page: <a href="<mt:GetVar name="entlink[$idx]">" title="Previous"><mt:GetVar name="entname[$idx]"></a></li> </mt:If> <mt:SetVarBlock name="idx"><$mt:GetVar name="x" value="1" op="-"$></mt:SetVarBlock> <mt:If name="idx" ge="0"> <li class="list_entry">Next Page: <a href="<mt:GetVar name="entlink[$idx]">" title="Next"><mt:GetVar name="entname[$idx]"></a></li> </mt:If> <mt:SetVar name="x" value="$entall"> </mt:If> </mt:For> </ul> <mt:Else> <ul> <MTEntryPrevious><li class="list_entry">Prev Page: <a href="<$MTEntryPermalink$>" title="Previous"><$MTEntryTitle encode_html="1"$></a></li></MTEntryPrevious> <MTEntryNext><li class="list_entry">Next Page: <a href="<$MTEntryPermalink$>" title="Next"><$MTEntryTitle encode_html="1"$></a></li></MTEntryNext> </ul> </mt:IfNonEmpty>Great! That code works well! Thank you.
I doesn't go to the next category when it gets to the end of the current one, but I like what it is doing with the next and previous posts within the same category.
Thanks!
I have some similar (but shorter) code on my blog:
http://www.movabletips.com/2010/11/displaying-the-next-and-previous-entry-in-a-category-with-movable-type.html
Nice !