Display links to the next and previous post on a blog post page.
Requirements
- RainLab Blog plugin
- Twig Extensions plugin
The following plugins are required

Blog
A robust blogging platform.
Blog
A robust blogging platform.

Twig Extensions
Add filters truncate, wordwrap, lowercase, uppercase, leftpad and more...
Twig Extensions
Add filters truncate, wordwrap, lowercase, uppercase, leftpad and more...
The following themes use this plugin

Modular Theme with PAGE BUILDER - Clear
Modular Theme with PAGE BUILDER - Clear
Octobercms Multipurpose Theme with Powerful Settings and an easy CRUD Generator - Page Builder system

Ultimate Website Builder - CREATOR Theme Bundle
Ultimate Website Builder - CREATOR Theme Bundle
The Ultimate Octobercms Theme Bundle with Advanced Page Builder & Powerful Component Blocks

eMarket - Advanced E-Commerce Octobercms theme
eMarket - Advanced E-Commerce Octobercms theme
Premium Ecommerce Octobercms theme based on OFFLINE Mall Plugin
The plugin includes a component for displaying links to the next and previous blog posts based on current post for RainLab Blog.
Just include the component in your post page
{% component 'nextAndPrev' %}
You can set a category filter,
- Current post category
- The Next / Prev post will be from the same category of the current post
- No category filter
- The component will display the Next / Previous post directly from the database
- Category from your own cataloge
- The Next / Prev post will be from the selected category
Help and support
If you find some bugs or have questions, you can leave a message in the forum or GitHub
-
Matthew Swinehart
Found the plugin useful on 23 Feb, 2021
There is a rather simple work around for Jarosław Turowski's issue with this plugin. You just need to modify the getNP() function to access the published_at attribute of the current post and order the post through that. Not sure why they decided to go through the postid. Still a useful head start.
-
Jarosław Turowski
Found the plugin useful on 25 Sep, 2020
Almost perfect. I noticed only one disadvantage: the order of posts is not sorted after the publication date, but after the id of the post. This means that if you add an entry with an earlier date, the order will not be maintained.
It would be worth improving it.
-
Mattew Andreev
Found the plugin useful on 9 Feb, 2017
Don't install via update and plaguins
-
Ivan Eduardo Cabrera author
Replied on 9 Feb, 2017
Hi, if you install this plugin using Backend - Updates - Plugins you need to install too the Twig Extensions plugin.
Thanks!
-
amdad
Found the plugin useful on 7 Feb, 2017
Very cool! Works.Thank you!
-
Ivan Eduardo Cabrera author
Replied on 9 Feb, 2017
Thanks for your review!
-
1.0.1 |
First version of NextPrevPost Feb 04, 2017 |
---|