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 Problem

October 21, 2011 11:29am

Subscribe [2]
  • #1 / Oct 21, 2011 11:29am

    Joseph Wensley

    38 posts

    Hi, I’m having a problem getting pagination working and was hoping someone could tell me what I’m doing wrong.

    This is my entries tag.

    {exp:channel:entries
     category="{segment_2_category_id}"
     channel="promotions"
     disable="categories|member_data"
     dynamic="no"
     limit="4"
     orderby="cf_listing_sold|cf_listing_sort_price"
     paginate_base="neighbourhoods/{segment_2}/listings"
    }
     {embed="promotions/.summary" entry_id="{entry_id}" {if count == 4}extra_class="last"{/if}}
      
     {paginate}
      <div class="paging">
       {current_page} of {total_pages} {pagination_links}
      </div>
     {/paginate}
    {/exp:channel:entries}

    The paginate_base is making the pagination links generate properly, so they look like “neighbourhoods/somwhere/listings/P4”, but the entries aren’t actually paginated when I go to the page.

    I’m using EE 2.3.1

     

  • #2 / Oct 24, 2011 10:55am

    Mark Bowen

    12637 posts

    Hi Joseph,

    For pagination to work you will need to change dynamic=“no” to dynamic=“yes”. Turning dynamic off means that ExpressionEngine won’t look to the URL to gain any information thus breaking your pagination.

    Does that help at all?

    Thanks,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases