Help - Search - Members - Calendar
Full Version: MTPaginate plugin implementation question
Movable Type Community Forum > Additional Resources > Tips and Tricks
dawnd
I have a category archive, and realize that each category page will get unmanageble quite quickly. I found out about the MT Paginate plugin, and it looks like it will be a solution to my problem.

I downloaded and read the instructions, but I am not clear on where to place the tags? Do they go in between the tags or before? I don't want one of my posts getting cut off.

I also want page numbers displayed on the top and bottom..is this possible?
almuhajabah
The best way to do what you want I think is something like this:

CODE
<MTPaginate>
Page <$MTPaginateCurrentPage$>
(header stuff that you want to put below the page number until you get to where the entries start)
Navigation: <$MTPaginateNavigator$>
<MTPaginateContent>
<MTEntries>
(the stuff you want for each entry)
<$MTPaginateSectionBreak$>
</MTEntries>
</MTPaginateContent>
(footer stuff that you want below the entries until you get to the bottom of the page where you want the page number)
Page <$MTPaginateCurrentPage$>
</MTPaginate>


Basically, you place the MTPaginateContent container tags directly around the content that you want to divide up into pages, which will usually be your listing of entries. The MTPaginateSectionBreak tells it that it can only break at the end of an entry listing and not in the middle.

You can place the MTPaginateCurrentPage tags wherever you want to show the page number. Then you need to make sure that the MTPaginate tags are placed so that all of your other paginate tags are inside of them.

I hope this makes sense.
dawnd
Thank you! It makes more sense, now. I will give it a try and let you know if it works. I have to first convert all of my files to .php, so I may not get this up and running until later this week.
stepan
Depending on your host, you may not have to change your extensions.  Check out my Dynamic Pages article on how to specify PHP processing in .htm files using an .htaccess file.
dawnd
Thanks for the info. I would like to be able to just have the server treat .html files as php, but a few of my pages contain includes. (These are currently saved as .shtml pages.) Wouldn't I need to save them as .php (modifying the include code) so the includes would be parsed?
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.