Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
file: pagination.module
function: pagination_preprocess_node
code:
$teaser = isset($variables['node']->teaser) ? $variables['node']->teaser : false;
I kown module's mean, only node/% path need this feature.
but $variables['node']->teaser means what is the node's teaser not show teaser or page.
I think, here should change to:
$tearser = $variables['teaser']
because the theme of node is:
'node' => array(
'arguments' => array('node' => NULL, 'teaser' => FALSE, 'page' => FALSE),
'template' => 'node',
),
am I right
Comments
Comment #1
vipzhicheng CreditAttribution: vipzhicheng commentedPS:
with this bug, if all node of the term page's teaser is null, the pager will not visible.
Comment #2
mundanity CreditAttribution: mundanity commentedHi there,
Good catch, updated in dev.