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?