0

Drupal hides the previous link of a pager if you are the first page,and the next link if you are on the last page. Is there way I can keep the links from disappearing, just in a disabled state? Can I do this without using php?

2 Answers 2

1

Probably not, to do this you would have to use theme_views_mini_pager().

Reference: http://drupalcontrib.org/api/drupal/contributions%21views%21theme%21theme.inc/function/theme_views_mini_pager/7

Example:

if (empty($li_previous)) {
   $li_previous = " ";
}

That is whats doing it...

1

No - not without PHP, not without overriding the pager template in Views to do this. You could be able to do this in CSS if the views pager rendered the links but did not display them but the template excludes them. If you're willing to try creating a custom pager template, this article explains the basic steps.

1
  • The link is dead. Commented May 8, 2015 at 14:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.