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.

How can I hide "Page 1 of 1" on single page

July 15, 2010 4:40pm

Subscribe [3]
  • #1 / Jul 15, 2010 4:40pm

    Deelicious

    86 posts

    Looking to avoid creating a separate template for single pages which don’t require pagination information, is there a way to write a conditional so if there is only one page of entries total, the pagination information doesn’t display? Currently it is showing “Page 1 of 1” at the bottom.

    Thanks a bunch for any assistance!

  • #2 / Jul 15, 2010 8:03pm

    Brandon Jones

    5500 posts

    Deelicious,

    Take a look at the total_pages variable. E.g.

    {if total_pages != 1} 
     Page {current_page} of {total_pages} pages
    {/if}

    Does that help?

  • #3 / Jul 16, 2010 12:08am

    Deelicious

    86 posts

    That did the trick…thank you!!

  • #4 / Jul 16, 2010 2:59am

    John Henry Donovan

    12339 posts

    Glad Brandon was able to help. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases