Lieutenant Dan
Lieutenant Dan

Reputation: 8284

Customizing/Hiding Pagination Nav

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

Upvotes: 0

Views: 264

Answers (1)

Mike Robinson
Mike Robinson

Reputation: 25159

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"]    
    });
});

Upvotes: 1

Related Questions