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.
I have a question on how to modify the pager. Specifically, I wish to remove the 'first' and 'last' elements so that it just shows the page numbers and the previous and next buttons (specific client request). I have found the API reference for the pager but not sure where or how I should modify, since Omega has a custom way of adding preprocess etc. Normally, I would put a new function called THEMENAME_pager etc in the template.php file, but not sure where to put it in the Omega custom set up.
Any suggestions / examples would be greatly appreciated.
Comments
Comment #1
dkre CreditAttribution: dkre commentedComment #2
drupal a11y CreditAttribution: drupal a11y commentedHow and where can I add missing "title"-tags?
Comment #3
drupal a11y CreditAttribution: drupal a11y commentedA great module for "Pager"-Theming is "Pagerer" (http://drupal.org/project/pagerer), but unfortunately it does not work with the Omega-Pager-Functions.
Can I disable these functions via UI ?
Comment #4
mondrake@mori
I am the developer/maintainer of Pagerer.
Recently I made some changes to Pagerer in order to get it working with Tao-based Rubik theme. See #1924022: Improve interaction with themes/modules that already override Drupal's core pager functions. This is all in the 7.x-1.1-beta2 version now. Beside the module, some changes were needed to the CSS as well, but at the end the result is pretty decent, see screenshot in comment #14 there.
I gave a try to Omega 3.1 with Pagerer 7.x-1.1-beta2 .... looks like the Pagerer functionalities are there, but obviously here again some styling would be needed to get to visually acceptable results - which I won't do (I am not a themer), but if anyone want to give a try and report here or in the Pagerer issue queue, I'd be happy to know about!
Cheers