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 issues

August 24, 2009 12:39am

Subscribe [2]
  • #1 / Aug 24, 2009 12:39am

    CI Lee

    343 posts

    Hi all,

    Real quick question, I’m sure its been gone over before however I cant seem to find a post on it.

    Rather than displaying

    <br /> « First <  5 6 7 8 9 >  Last »  <br />

    for pagination I would rather just have a total number of links to represent pages

    <br /> 1 2 3 4 5 6 7 8 9 10 11 12 13 <br />

    Can someone point me to where I can find more info on this.

    Thanks!
    -Lee

    Moved to HowTo by Moderator

  • #2 / Aug 24, 2009 1:18am

    John Henry Donovan

    12339 posts

    Lee,

    that is the standard output of the {pagination_links} tag.

    There may be a plugin available though. Do you want me to move this to the How to for you?

  • #3 / Sep 03, 2009 11:32am

    CI Lee

    343 posts

    Whoops, sorry I did post in the wrong section, my bad.

    Would you mind moving this as I am still trying to solve this issue.

    Thanks.

  • #4 / Sep 03, 2009 11:35am

    Sue Crocker

    26054 posts

    Moving as requested.

  • #5 / Sep 03, 2009 3:34pm

    CI Lee

    343 posts

    I solved this by changing $max_links in core.paginate.php to

    var $max_links        =  40;

    And then changing the outputted links to include the list item tags.

    Just in case anyone else wants to do this, I know it would break if I failed to back up that file when upgrading but this is a one off solution for this specific problem.

    -Lee

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

ExpressionEngine News!

#eecms, #events, #releases