The pager does not use the custom value for "Text for the previous page link"

Created on 14 February 2025, 9 days ago

Problem/Motivation

The Bootstrap Italia Drupal pager does not use the custom value for the "Text for the previous page link" field in Views pagination settings. The issue occurs when the option to display the textual pager without icons is enabled.

Steps to reproduce

Create a View with numeric pagination.

  • In the pagination settings, fill in the "Text for the previous page link" field with a custom value (e.g., "Back").
  • Save the View.
  • Go to Appearance ā†’ Bootstrap Italia Drupal theme settings.
  • In the "Navigation component settings" section, check the "Show textual pager (no icons)" checkbox.
  • Visit the View page and observe that the "Previous" link does not use the custom value provided.

In the theme file:
šŸ“„ /themes/contrib/bootstrap_italia/templates/base/pager.html.twig
On line 54, the variable is mistakenly written as tems instead of items, causing the custom text not to be used.

Proposed resolution

Correct the typo on line 54 of pager.html.twig from tems.previous.text to items.previous.text

Remaining tasks

---

User interface changes

---

API changes

---

Data model changes

---

šŸ› Bug report
Status

Needs work

Version

2.12

Component

Code

Created by

šŸ‡®šŸ‡¹Italy arturopanetta Grotteria (RC)

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024