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 Links Off

March 11, 2009 9:06pm

Subscribe [1]
  • #1 / Mar 11, 2009 9:06pm

    Arun S.

    792 posts

    RE: ExpressionEngine 1.6.7, Build 20090211

    Hey guys,

    I’m using very simple code to add pagination:

    {paginate}
        {pagination_links}
    {/paginate}

    I have approx. 12 entries in this particular weblog and am limiting the weblog:entries tag by 5.  So, among other thinga I should be getting links that link to:

    example.com/weblog/P2
    example.com/weblog/P3

    Instead, I’m getting links to:
    example.com/weblog/P5
    example.com/weblog/P10

    When I change the limit to 3, I get links to:
    example.com/weblog/P3
    example.com/weblog/P6

    So, it seems that the links are being formed as multiples of the limit.  When I use the {auth_path} variables inside the proper conditionals, I get the same result.

    Any ideas?

  • #2 / Mar 11, 2009 9:17pm

    Greg Aker

    6022 posts

    Yes, it is counting the number of entries and offsetting the query by what is in the URL.

    -greg

  • #3 / Mar 11, 2009 9:23pm

    Arun S.

    792 posts

    So, I’m wrong in expecting page 2 to have P2 in the URL? Page 3 to have P3? Etc…

  • #4 / Mar 11, 2009 9:30pm

    Greg Aker

    6022 posts

    Yes, if you limit to 5 entries per page, think of it more as beginning after Post 5 on the second page.

    -greg

  • #5 / Mar 11, 2009 9:31pm

    Arun S.

    792 posts

    I don’t know why I’ve never noticed that before.  I might put in a feature request so that the links are more intuitive.

    For now, close this one out.  😊

  • #6 / Mar 11, 2009 9:31pm

    Greg Aker

    6022 posts

    Sounds good.  Please don’t hesitate to start a new thread if anything else comes up.  😊

    -greg

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

ExpressionEngine News!

#eecms, #events, #releases