We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Help with a Pagination extension

Development and Programming

PhireGuys's avatar
PhireGuys
525 posts
16 years ago
PhireGuys's avatar PhireGuys

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:

weblog_module_create_pagination - (mod.weblog.php)

weblog_module_fetch_pagination_data - (mod.weblog.php)

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!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.