ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Pagination Hook Issues

July 03, 2012 11:08am

Subscribe [0]
  • #1 / Jul 03, 2012 11:08am

    Un.titled

    34 posts

    Hi,

    We have upgraded one of our sites from 2.1 to 2.5.2. Everything is fine except for a pagiation plugin that we’re using that can be found here http://devot-ee.com/add-ons/logiq-pagination

    The plugin uses the channel_module_create_pagination hook to modify the result set and generate the markup required. The actual method called looks like this:

    function create_new_pagination(&$data)
        {
            $data->EE->extensions->end_script = TRUE;
            $query = $data->EE->db->query($data->pager_sql);

    However it is not running the db query correctly because the $data->pager_sql variable is not being set. A var_dump on $data shows a whole load of set data but no pager_sql. The page being called definitely has paged data, and I can confirm on ee 2.1 this var was populated with the value you’d expect (a sql string).

    Has the channel_module_create_pagination hook changed in what it returns? Or does anyone else know of any fix for this?

    Thanks

  • #2 / Jul 04, 2012 11:35am

    Dan Decker

    7338 posts

    Hi Un.titled,

    Did you make sure to update Logiq Pagination along with ExpressionEngine?

    Also, any issues with third-party add-ons are best addressed with the author.

    I can confirm that channel entry pagination was significantly changed in ExpressionEngine 2.4, but I would expect the latest version of Logiq to be updated with that in mind.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases