In magento 1.9.2.3 at the category of products I have two toolbars.
At top toolbar I need only "Previous" and "Next" link.
At the bottom toolbar I need "Total of Pages", "1, 2, 3 … n-th nubmer of pages with link", and "Previous" and "Next" link.
I create my new theme and template.
From list.phtml
I can get the block of pager.phtml
with this code:
<?php echo $this->getToolbarBlock()->getPagerHtml() ?>
But I need to obtain diferite template of pager.phtml
for top-toolbar and for bottom-toolbar, how can I add a new template of pager.phtml
?
Best Answer
So, I have created a new file
toolbar-bottom.phtml
and insert this code:And in the
list.phtml
I insert this code:And in
toolbar.phtml
I insert this code: