-
Hi, I'm working on a small Symfony project as a self-taught exercise and I'm trying to figure out how to proceed to link to an anchor when clicking on a pagerfanta pagination link. I've found this whiteoctober#108 but it's quite old ; maybe there is an option I haven't found ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
All the variables available in the Twig templates are documented at https://www.babdev.com/open-source/packages/pagerfantabundle/docs/3.x/views#creating-a-twig-view-template (I really should move that stuff from the bundle to the library). Your best bet is going to be to extend the appropriate Twig template and replace the |
Beta Was this translation helpful? Give feedback.
All the variables available in the Twig templates are documented at https://www.babdev.com/open-source/packages/pagerfantabundle/docs/3.x/views#creating-a-twig-view-template (I really should move that stuff from the bundle to the library).
Your best bet is going to be to extend the appropriate Twig template and replace the
*_page_link
blocks with a version that includes your anchor (how the anchor gets generated is going to be on you to sort out).