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

Format pagination

Development and Programming

mArzsmAn's avatar
mArzsmAn
45 posts
17 years ago
mArzsmAn's avatar mArzsmAn

Is it possible to change the pagination variables in core.pagination.php with one of these hooks?

weblog_module_create_pagination

weblog_module_fetch_pagination_data

It seems that everyone just hacks the core file.

       
Jamie Poitra's avatar
Jamie Poitra
409 posts
17 years ago
Jamie Poitra's avatar Jamie Poitra

mArsmAn,

If I’m looking at the code correctly that is the purpose of these hooks. Or a possible purpose at the least. It lets you create an alternate way of doing pagination. So how the pagination variables look and how they interact with your new pagination method would then be up to you. This would be generally preferable to hacking the core file especially since you wouldn’t then have to re hack it every time you upgrade or install a new build.

Jamie

       

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.