Skip to content

Adding an anchor to Pagerfanta Twig options ? #46

Closed Answered by mbabker
bricebou asked this question in Q&A
Discussion options

You must be logged in to vote

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).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bricebou
Comment options

Answer selected by bricebou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants