Skip to content

Pagination override breaks AJAX functionality #9

@fixed

Description

@fixed

As it is right now, the bootstrap_pager() function breaks the AJAX functionality of Views.

This is due to two things:

  1. the "pager" class is removed from the list. I see that you did it to avoid the default Drupal theming and to distinguish Bootstrap pagination from Bootstrap pager. However, Views won't attach to the links if this class isn't present. Another solution for removing the Drupal theming might be to introduce a Drupal-reset CSS file that clears the styles before adding the Bootstrap CSS. I tested it and the functionality comes back but now there is still the problem of having a mixed Bootstrap representation of pager and pagination. Although resulting in a rather hacky CSS, one might declare CSS rules that will clear the pager-styles when inside a pagination wrapper... maybe you have a better idea?
  2. For the active pager, you added an <a> tag around the number which is interpreted by Views as an actual pager-link. According to the Bootstrap docs, you can also use a <span> to retain the theming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions