For a project we needed this module, but instead, we needed something else then the node title for the pager.

Created a quick patch for this, probably needs some finetuning (caching, ...)

Comments

brentgees created an issue. See original summary.

brentg’s picture

StatusFileSize
new4.98 KB

Uploaded a patch, this one will only apply if you're using it together with https://www.drupal.org/project/menu_pager/issues/3071080#comment-13210482 though

balajidharma’s picture

Hi brentgees,

The templates are available on 8.x-1.x branch. Kindly use the DEV (8.x-1.x) branch.

https://git.drupalcode.org/project/menu_pager/tree/8.x-1.x/templates

The label option is look good, but need to move the label options to block configuration (function blockForm).

https://git.drupalcode.org/project/menu_pager/blob/8.x-1.x/src/Plugin/Bl...

Note: For patch creation use the 8.x-1.x branch

balajidharma’s picture

Version: 8.x-1.0 » 8.x-1.x-dev

  • balajidharma committed aaf390d on 8.x-1.x
    Issue #3072878 by brentgees, balajidharma: Allow next / previous instead...

  • balajidharma committed 730d124 on 8.x-1.x
    Issue #3072878 by balajidharma: Allow next / previous instead of node...
balajidharma’s picture

Status: Needs work » Fixed

The custom label option added on development branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

brentg’s picture

StatusFileSize
new787 bytes

Turns out the previous/next label wasn't translatable, probably better to translate the config form, but this is an ok temporary solution.

brentg’s picture

StatusFileSize
new5 KB
balajidharma’s picture

Hi brentgees,

The labels are block level configuration, so i hope no need to add the translate. We need to apply Configuration translation. Created ticket for this changes #3130720: Translation for next / previous block config