0

I'm trying to figure out how to customize the Pagination Plugin's Navigation; the First, Prev, Page 1, Page 2, Next, Last. I want to make it 'Prev, Next, Page 1 of 2'

http://th3silverlining.com/2010/04/15/pajination-a-jquery-pagination-plugin/

The documentation states I can hide 'First/Last' by declaring show_first_last as false -

However, this didn't work.

UPDATE: Here's a link with the full code, and struggle. http://tinyurl.com/buab7ah

3
  • do you have some html? or even a jsfiddle.net
    – user106197
    Nov 10, 2011 at 14:16
  • 1
    Doesn't look like it's supported out of the box, but hey, my afternoon is free... Nov 10, 2011 at 19:11
  • Success! It's now part of the plugin, so this issue shouldn't exist again :) Nov 16, 2011 at 23:09

1 Answer 1

1

OK so it doesn't support it out of the box and I had to modify it a little. Here's the link:

http://dl.dropbox.com/u/24657596/Pajinate/jquery.pajinate.js

So how does it work? Simple - specify the order via a string array, like so:

$(document).ready(function(){
    $('#paging_container1').pajinate({
        nav_order : ["prev", "next", "num"] 
    });
});

Or like so:

$(document).ready(function(){
    $('#paging_container1').pajinate({
        nav_order : ["prev", "next", "num", "first", "last"]    
    });
});
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.