[solved] Products pagination ?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
pedes
Power Poster
Power Poster
Posts: 840
Joined: Tue Jan 27, 2009 11:47 am

[solved] Products pagination ?

Post 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
Last edited by pedes on Fri Feb 27, 2015 4:21 am, edited 2 times in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Products pagination ?

Post 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}
Post Reply

Return to “Modules/Add-Ons”