I’m trying to build my first extension but wanted to get some help from the veterans.
Basically, I’d like alter the {pagination} tag to make my own so that I can control the URL that is used for putting together the pagination links. Right now it defaults to the /index.php/template_group/template/ but I want to make it so I can have anything as the URL based on input.
So I wanted to created a tag like this, {exp:custom_pagination path="/blog/"} and it use my new path as the path.
I did some research but I’m not really sure how to approach making this work. I saw the hooks for the pagination:
But I’m not totally sure how to do this. Is there a guide to using these hooks? Is an extension the right way to go about this?
I can easily change this in the mod.weblog.php file, but I didn’t want to edit it since keeping track of edits in core modules and updates is really tough.
Thanks!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.