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
[solved] Products pagination ?
[solved] Products pagination ?
Last edited by pedes on Fri Feb 27, 2015 4:21 am, edited 2 times in total.
Re: Products pagination ?
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}">«</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}">»</a></li>
</ul>
{/if}


