For every node of selected content type module add "previous" and "next"
buttons to previous or next node.
Module provide custom pager for content type.
Pager will apply to end of node render array.
There is possibility to use pager for navigating between nodes of same author.
There is a possibility to show titles of the closest nodes before and after a current node (quantity of nodes shown can be adjusted).
Example:
let us suppose there are 5 nodes: node 1, node 2, node 3, node4, node 5;
a) current node is 3:
below the pager there will be following links:
node 1, node 2, node 4, node 5
b) current node is 2:
below the pager there will be following links:
node 1, node 3, node 4, node 5
c) current node is 5:
below the pager there will be following links:
node 1, node 2, node 3, node 4
There is hook which makes it possible to control sampling of previous and next node.
As well as a hook to control sampling of nodes closest to the current one.
Requirements
Drupal 8.x or 9x
Installation
1. Copy the entire pager_for_content_type directory
the Drupal sites/all/modules directory.
2. Login as an administrator. Enable the module
in the "Administer" -> "Modules"
3. (Optional) Edit the settings under
"Administer" -> "Configuration" -> "Pager settings" -> "Pager for content type settings"
Credits
This project has been sponsored by:
Volcanoideas Drupal consulting and development.
Project information
- Maintenance fixes only
Considered feature-complete by its maintainers. - 360 sites report using this module
- Created by svipsa on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 10 compatibility and flexible label configurations
Development version: 8.x-1.x-dev updated 22 May 2023 at 14:38 UTC
Development version: 7.x-1.x-dev updated 6 Jul 2016 at 20:22 UTC