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 count error

July 20, 2010 9:57am

Subscribe [2]
  • #1 / Jul 20, 2010 9:57am

    code72

    104 posts

    Not sure if this is related to this bug but the {total_pages} variable shows incorrectly on the first page.  It looks like this also breaks the ‘Next’ and ‘Previous’ pagination links on the first page.

    Below is my template code:

    {exp:channel:entries channel="portfolio" limit="1" disable="member_data" paginate="top"}    
        <div class="content_col">
            {paginate}
                
                    Total pages: {total_pages}
    
                    {if previous_page}<a href="http://{auto_path}">Previous Page</a>  {/if}
                    {if next_page}<a href="http://{auto_path}">Next Page</a>{/if}
    
                    Page {current_page} of {total_pages} pages {pagination_links}
                
            {/paginate}
        
            ...
        </div>
    {/exp:channel:entries}

    And here is a screenshot of the pagination output on the first page: http://drp.ly/1oygeK
    But if I click to page two it shows up correctly as seen here: http://drp.ly/1oyi99

    I’m on EE 2.1.0 build 20100712.  Am I missing something or is this a bug?

  • #2 / Jul 20, 2010 7:08pm

    Brandon Jones

    5500 posts

    Hi code72,

    Thanks, I believe that is related. The fix is in and should be in the next release. Going ahead and closing this thread, but don’t hesitate to open a new one if you still have issues after that.

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

ExpressionEngine News!

#eecms, #events, #releases