We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Bootstrap pagination - auto_links

Kelly June 26, 2019 by Kelly

Just noticed that the {{ auto_links }} tag currently outputs outdated bootstrap code. (not bootstrap 4)

"The auto_links tag is designed to be your friend. It’ll save you more than a few keystrokes, and even more headaches. It’ll output a Twitter Bootstrap-ready list of links for you." https://docs.statamic.com/tags/collection

The updated pagination requires classes added to the lists and links. https://getbootstrap.com/docs/4.0/components/pagination/

I just added the full code and customized as needed.

Also, it took me a while to find that I could customize the <a href="{{ prev_page }}> links with anchors like this: <a href="{{ prev_page }}#reviews">

Hope this helps someone else working on pagination, too.

>>>>>>> Unanswered <<<<<<<
1 Reply