Help - Search - Members - Calendar
Full Version: Next And Previous Links To Read The Old Entries
Movable Type Community Forum > Using Movable Type > Categories and Entry Tags
Nicholas.K
Hi,

When I click on a category, it only displays the recent entries in that category. How can I add a "next" and "previous" link down under a category to make it possible to read older entries?

Thanks.
jadespacy
Have you tried using the archive link? I think that takes you to older entries…
Nicholas.K
QUOTE (jadespacy @ Feb 29 2008, 07:53 PM) *
Have you tried using the archive link? I think that takes you to older entries…


Yes, I tried that. Either I don't know how to correctly use it or there is no way to display the older posts! When I use Archivelist or Archivenext can't display the older entries in a second page. I just miss how "blogger" worked. I didn't have as many choice as Movable type, but these kind of things were just a MUST there. And thanks to everyone, this forum looks just deserted. You post a question and it may never get replied or if someone replies, it would be in a month or two! They say pay to get support, but I really don't believe they will create a new tag, just because I paid for a year of support! Long story short: Display all 100 entries in a category, or end up showing 5-6 entries and the older ones, rest in peace.
jadespacy
Hm, I think you should be using <mt:EntryNext> and <mt:EntryPrevious> (http://www.movabletype.org/documentation/appendices/tags/entrynext.html) to call up the previous/next entry in your blog. There's also a plugin for previous/next in category: http://plugins.movabletype.org/previousnextinc/ (I can't vouch for how well this works.) Barring that, you ought to be able to access older entries on your archives page (archives.html or archives.php, usually, depending on your output file for the archive index template), if you have archive mapping (such as category-monthly or category-yearly) set up for your entries. In the default templates, there's a link for "Archives."
Nicholas.K
QUOTE (jadespacy @ Mar 6 2008, 05:23 PM) *
Hm, I think you should be using <mt:EntryNext> and <mt:EntryPrevious> (http://www.movabletype.org/documentation/appendices/tags/entrynext.html) to call up the previous/next entry in your blog. There's also a plugin for previous/next in category: http://plugins.movabletype.org/previousnextinc/ (I can't vouch for how well this works.) Barring that, you ought to be able to access older entries on your archives page (archives.html or archives.php, usually, depending on your output file for the archive index template), if you have archive mapping (such as category-monthly or category-yearly) set up for your entries. In the default templates, there's a link for "Archives."


Thank you Jadespacy for your reply.
What I meant was to put a next and previous links down under each category, while a category is displaying only lets say 8 recent entries. Then a previous link could point to a second page with 8 older entries and the next time you click on previous, you should come up with the 8 older entries. At the moment, it is possible to set up the number of recent entries under setting page in MT, but no way to set more than that.
I know about Archive page, but the problem is that it is a page which lists ALL entries, and as I wrote before, this is not what I am looking for. I had a look at the plugin you pointed but unfortunatly it isn't for MT version 4.
There is also a plugin named Pagination from mt-hacks. It looks promising but I believe that this should be something built in MT.
Su-
Nicholas, you've got some incorrect assumptions about the way these templates work. This isn't Blogger, and you're going to have to learn to work with the tool in front of you. Most of MT's functions and limits are not in any sort of control panel as with Blogger but within the template language itself.

First of all, what type of category template are you talking about? If it's category-monthly(-weekly, or any other variation), then what you see is entirely correct. The current month's page will only show a few posts, and there should be pagination links at bottom to move onto the next category-monthly chunk's items.

If it's a plain category archive, then yes, there's a limit set on the MTEntries tag in the default template. It's set to "auto," which defaults to the Entry Listing Default setting. If you want some other amount, then you have all the power--and responsibility--to change it. Find this:
CODE
<MTEntries limit="auto">
and make it whatever you want.

Also, the plugin Jadespacy pointed you at works perfectly well in MT4, though I don't think it's the solution to your actual problem.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.