Home » VayaDesign Weblog » Simple Pagination Plugin for Expression Engine
In Scripts & Resources, Expression Engine
Although Expression Engine is an incredibly powerful content management system I have found that one of its more core features, pagination, is a bit lacking. In order to split one entry across multiple pages it’s necessary to place the content for each page in its own field. This would mean a 20 page article would require 20 seperate fields, and when only two or three of those are likely to be used regularly that seems a bit of a waste. Fortunately the plugin system makes it possible to overcome this problem if you’re happy to get your hands dirty with a bit of PHP, which is exactly what I’ve opted to do.
The Simple Pagination plugin makes it possible to split up an entry into an unlimited number of pages by simply entering {pagebreak} wherever one page should end and another should begin. Usage of the plugin is simple and its features are almost exactly the same as those offered by the standard EE pagination setup. To view an example of the plugin in action see the simple pagination demo that I've setup.
Although the plugin is fairly flexible it should only be used on 'permalink' style pages, that is, pages focussed on a specific entry.
Any comments or examples of the plugin being used 'in the wild' are welcome, as are donations at the link below if you have you found it particularly useful.
| July 2008 | ||||||
|---|---|---|---|---|---|---|
| S | M | T | W | T | F | S |
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 | ||
Great plugin! I have a couple clients that would be interested in something like this.
Nice plugin! I might be able to use this in the future to break apart pages for reviews and such. Great idea!
Glad to hear it’ll be of use! As I say, it’d be great to see some examples of it in use so do let me know if you use the plugin on any of your sites.
Ok, I had to implement this because I had a post that was rather lengthy, and wanted to shorten it down. This plugin worked like a charm! Check it out:
http://harofood.com/index.php/hf/comments/black_bear_diners/
I love it. I’m sending you some money for this.
Not much, but I know every little bit counts. (well to me at least.
)
You bet it does Yoshi, thanks. The site looks great, glad to hear the plugin works as you wanted it to.
I’ve released a slightly updated version of the plugin today which has some clarified usage instructions included and a slight modification to the {pagination_links} functionality.
Where the last and first page links used to appear on all articles they are now restricted to articles that are more than 3 pages long.