Created
March 14, 2021 07:01
-
-
Save andreybolonin/24942ede75c34af01e93722b0fdf6f83 to your computer and use it in GitHub Desktop.
config/packages/pagination.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
knp_paginator: | |
page_range: 10 # number of links showed in the pagination menu (e.g: you have 10 pages, a page_range of 3, on the 5th page you'll see links to page 4, 5, 6) | |
default_options: | |
page_name: page # page query parameter name | |
sort_field_name: sort # sort field query parameter name | |
sort_direction_name: direction # sort direction query parameter name | |
distinct: true # ensure distinct results, useful when ORM queries are using GROUP BY statements | |
filter_field_name: filterField # filter field query parameter name | |
filter_value_name: filterValue # filter value query parameter name | |
template: | |
pagination: '@KnpPaginator/Pagination/twitter_bootstrap_v4_pagination.html.twig' # sliding pagination controls template | |
sortable: '@KnpPaginator/Pagination/sortable_link.html.twig' # sort link template | |
filtration: '@KnpPaginator/Pagination/filtration.html.twig' # filters template |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment