Results 1 to 3 of 3

Thread: Pagination Template issue

  1. #1
    User
    Join Date
    07-01-09.
    Posts
    91

    Default Pagination Template issue

    I'm trying to modify the pagination template (pagination.html5), however, it doesn't contain the code I want to modify.

    It breaks out the First, Previous, Next and Last button code, but for the actual page links, it just references " <?php echo $this->items; ?>"

    Where can I edit this? I want to add some classes to the "li" and "a" portions.

    Thank you.

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

    Default Re: Pagination Template issue

    I think you should use CSS...

    You can find something here:

    http://www.contao-factory.com/code-detail.html?id=1

    which help me to sort out some issues I had with pagination.

  3. #3
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: Pagination Template issue

    If CSS alone is not sufficient for your needs -- I ran into this before, where I wanted to actually change the HTML of the pagination links. Unfortunately it's hard-coded into the Pagination module.

    I ended up doing a preg_replace on $this->items to get what I wanted.
    Brian

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
  •