Next and previous entry in Movable Type
in Movable Type
If you enable individual archive, you can add link to previous and next entry to build interactivity. For example, you want to have those links in the following structure:
<ul> <li>Prev: <a href="prev-entry-link">Previous entry title</a></li> <li>Next: <a href="next-entry-link">Next entry title</a></li> </ul>
What kind of template tags you should use in your individual archive template? You can try this:
<ul> <MTEntryPrevious><li>Prev: <a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a></li></MTEntryPrevious> <MTEntryNext><li>Next: <a href="<$MTEntryPermalink$>"><$MTEntryTitle remove_html="1"$></a></li></MTEntryNext> </ul>
Previous and next link will be displayed if there are newer or older entries. You can add more template tags and HTML attributes there.
If you're new here, you may want to subscribe to my RSS feed go get the latest entry from your RSS reader. You can also have my contents delivered to your inbox.