Best laravel framework open-source packages.

Ed.pagination.ee_addon

More friendly pagination for ExpressionEngine 2
Updated 1 year ago

h1. ED pagination for ExpressionEngine 2.x

A more friendly approach to EE channel pagination.

This feature is now available as part of EE2.3 and works almost identically. See "the documentation":http://expressionengine.com/user_guide/modules/channel/pagination_page.html#pagination-links for more information.

h2. Installation

Copy ext.ed_pagination.php to @system/expressionengine/third_party/ed_pagination@

Enable in the control panel

h2. Usage

All the "original pagination methods and malarkey":http://expressionengine.com/user_guide/modules/channel/pagination_page.html are supported, but in addition you may use the @ed_pages@ tag pair.

h3. Variables:

  • @href@ the url to the paginated page
  • @cur@ a string containing 'cur' if the page in the loop is the current one
  • @page_no@ an integer of the current page int the loop
  • @ed_first_poge_href@ the url to the first paginated page
  • @ed_last_page_href@ the url to the last paginated page

h3. Example template usage:

bc.. {paginate}

{if "{total_pages}" > "1"}

Page {current_page} of {total_pages}

{/if}

{/paginate}

p. Which would output:

bc..

Page 2 of 4

p. That's based on there being a limit of 5 in your entries tag.