CMS MADE SIMPLE FORGE

ListItExtended

 

[#8125] Pagination with page numbers

avatar
Created By: Allan Scott (allan1412)
Date Submitted: 2012-07-11 01:45

Assigned To: Tapio Löytty (Stikki)
Resolution: Fixed
State: Closed
Summary:
Pagination with page numbers
Detailed Description:
Is there a way of setting up pagination like this:

First Previous 1 2 3 4 5 Next Last

With the numbers being links as well?

History

Comments
avatar
Date: 2012-07-11 14:03
Posted By: Tapio Löytty (Stikki)

Added to 1.2 branch, included into example templates.

usage: 

{foreach from=$pagelinks item=page}
    {$page->link}
{/foreach}

OR

{foreach from=$pagelinks key=number item=page}
    <a href="{$page->url}">OMG PAGE {$number}</a>
{/foreach}

-Stikki-
      
avatar
Date: 2012-07-11 15:55
Posted By: Allan Scott (allan1412)

Excellent - thanks Stikki. Your help is much appreciated.
      
avatar
Date: 2012-07-30 04:19
Posted By: Goran Ilic (uniqu3)

1.2 was released
      
Updates

Updated: 2012-07-30 04:19
state: Open => Closed

Updated: 2012-07-11 14:03
resolution_id: => 7
assigned_to_id: 100 => 11306