diff --git a/README.md b/README.md index 64cd963..bf63d99 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ knp_paginator: filter_value_name: filterValue # filter value query parameter name template: pagination: '@KnpPaginator/Pagination/sliding.html.twig' # sliding pagination controls template + rel_links: '@KnpPaginator/Pagination/rel_links.html.twig' # tags template sortable: '@KnpPaginator/Pagination/sortable_link.html.twig' # sort link template filtration: '@KnpPaginator/Pagination/filtration.html.twig' # filters template ``` @@ -111,6 +112,7 @@ return static function (ContainerConfigurator $configurator): void ], 'template' => [ 'pagination' => '@KnpPaginator/Pagination/sliding.html.twig', // sliding pagination controls template + 'pagination' => '@KnpPaginator/Pagination/rel_links.html.twig', // tags template 'sortable' => '@KnpPaginator/Pagination/sortable_link.html.twig', // sort link template 'filtration' => '@KnpPaginator/Pagination/filtration.html.twig' // filters template ] @@ -134,6 +136,11 @@ That could be used out of the box in `knp_paginator.template.pagination` key: * `@KnpPaginator/Pagination/tailwindcss_pagination.html.twig` * `@KnpPaginator/Pagination/uikit_v3_pagination.html.twig` +#### Sample rel link tag template +That could be used out of the box in `knp_paginator.template.rel_links` key: + +* `@KnpPaginator/Pagination/rel_links.html.twig` (by default) + #### Additional sortable templates That could be used out of the box in `knp_paginator.template.sortable` key: @@ -193,6 +200,15 @@ public function listAction(EntityManagerInterface $em, PaginatorInterface $pagin ### View +#### In `
`: + +```twig +{# rel links for pagination #} +{{ knp_pagination_rel_links(pagination) }} +``` + +#### In ``: + ```twig {# total items count #}