Results 1 to 4 of 4

Thread: Pagination - limit number of pages displayed

  1. #1
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default Pagination - limit number of pages displayed

    How to limit number of items/page numbers in pagination list ( I don't need to have it all listed, just i.e. five closest to the current page)?

    1 2 3 4 5 6 7 NEXT LAST
    PREVIOUS 1 2 3 4 5 6 7 NEXT LAST
    replace with
    1 2 3 4 ... 7 NEXT LAST

    etc.

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default Re: Pagination - limit number of pages displayed

    Try to solve this by modifying pagination.xhtml or by CSS. But the amount is already hardcoded limited to 7.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default Re: Pagination - limit number of pages displayed

    Quote Originally Posted by Andreas
    Try to solve this by modifying pagination.xhtml or by CSS. But the amount is already hardcoded limited to 7.
    To 7? That is just fine for purpose... I supposed that some modification of pagination.html was needed, but just wanted to check is there some tips and tricks. Thanks anyway.

  4. #4
    Community-Moderator lucina's Avatar
    Join Date
    10-08-10.
    Location
    Issy-les-moulineaux
    Posts
    93

    Default Re: Pagination - limit number of pages displayed

    The only way to adjust the number of pages to be displayed in pagination will be setting another value in https://github.com/contao/core/blob/mas ... n.php#L134 - but this won't be safe for updates.

    Carolina.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •