The granularity is not giving enough flexibility.

Created on 18 March 2025, 18 days ago

Problem/Motivation

Admitting I want to display the nodes from a date field by 2 years on each page, then it is not possible using the current granularity.

Steps to reproduce

Proposed resolution

Introduce a new integer option when configuring the pager to complement the granularity. That way you could set
2 & years, 4 & days, 80 minutes etc... That would make the module so much more powerful.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.1

Component

Code

Created by

🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @phjou
  • 🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺

    Just posting a patch that I used on my side to be able to get 2 years per page.

    That's probably a starting point to get tested. I got quite some issues while developing it, so there might be some more problems. But if the new granularity amount is 1, then the code should basically do the same as before.

  • 🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺

    Uploading new patch hopefully now decorrelated from [#315064 ]

Production build 0.71.5 2024