melfred13 Posted July 3, 2013 Share Posted July 3, 2013 how can i make my pagination looks like this << page 1 of 10 > > view all >> Please help Link to comment Share on other sites More sharing options...
NemoPS Posted July 3, 2013 Share Posted July 3, 2013 First of all, if you want to achieve the 'view all' thing, you will need to edit the core pagination method of the FrontController (do you know php?) As the rest, it can be easily achieved by using the variables $p and $page_nb to show off the current page and total number respectively. With these, you can remove the section loop {section name=pagination start=$start loop=$stop+1 step=1} {if $p == $smarty.section.pagination.index} <li class="current"><span>{$p|escape:'htmlall':'UTF-8'}</span></li> {else} <li><a {$no_follow_text} href="{$link->goPage($requestPage, $smarty.section.pagination.index)}">{$smarty.section.pagination.index|escape:'htmlall':'UTF-8'}</a></li> {/if} {/section} In pagination.tpl,that shows every page, and the redundant dots added when pages are too many. SImply add 'Page {$p} of {$pages_nb}' Then, of course, add the < and > signs instead of the texts 'previous' and 'next' Link to comment Share on other sites More sharing options...
melfred13 Posted July 4, 2013 Author Share Posted July 4, 2013 i already finished the << 1 of 5 >> format . now i want to do the view all link , how can i do that .. ? is there any instruction you can give? Link to comment Share on other sites More sharing options...
Recommended Posts