Page 1 of 1

[solved] Products pagination ?

Posted: Mon Feb 23, 2015 10:40 pm
by pedes
Hello,

I use on CGBlog a very nice pagination i found in this forum some time ago, http://forum.cmsmadesimple.org/viewtopic.php?f=4&t=10188.

Is there a way to have this on the Products module.
I can not get this to work, it seems that the pagination on Products module works in a different way.

Anyone can help me out with this?

Thank you

Kind regards
Peter
--------------
UPDATE
I follow the reaction of Velden, this works pretty well.
Thank you all for replying it was very helpfull

Re: Products pagination ?

Posted: Tue Feb 24, 2015 7:38 am
by pete290

Re: Products pagination ?

Posted: Tue Feb 24, 2015 12:07 pm
by velden
This is how I did it on http://tinyurl.com/mphmqrb

Code: Select all

{if isset($pagecount) && $pagecount gt 1}
<ul class="pagination clearing-container">
<li class="arrow{if $curpage == 1} unavailable{/if}"><a href="{$prevpage_url}">&laquo;</a></li>
{if !empty($prevpage_url)}{$tmp_url=$prevpage_url}
{elseif !empty($nextpage_url)}{$tmp_url=$nextpage_url}
{else}{$tmp_url=''}{/if}
{for $pages=1 to $pagecount}
  <li{if $pages == $curpage} class="current"{/if}><a href="{$tmp_url|regex_replace:'/page=\d/':"page=$pages"}">{$pages}</a></li>
{/for}
<li class="arrow{if $curpage == $pagecount} unavailable{/if}"><a href="{$nextpage_url}">&raquo;</a></li>
</ul>
{/if}