
Originally Posted by
sports guy
OK, so trying to put the page number like I want and still keep the other page numbers (built in pagination) seems like it's going to need a major overhaul. Since not many are responding and the response that were received looks like it's going to be very diffucult, how hard would it be to turn the built in pagination to this:
(left arrow) Page 3 of 10 (Right Arrow). Would this be much easier? I think maybe I need to pursue this path if I have to.
So, like I said, relatively easy... In tpl_modules_product_listing.php, I added the following and now have Page X of Y (Insert page numbers for each):
Code:
<div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo 'Page ' . $listing_split->current_page_number . ' of ' . $listing_split->number_of_pages; ?></div>
<br class="clearBoth" />
The use of hard coded English is incorrect; however, it represents the resolution... The div id= and/or class could/should be changed to something that can be positioned as necessary although if the Prev/Next section is moved, the above will move with it.
If placed as this: then the two page representations are above one another:
Code:
<div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, zen_get_all_get_params(array('page', 'info', 'x', 'y', 'main_page'))); ?></div>
<div id="productsListingListingTopLinks" class="navSplitPagesLinks forward"><?php echo 'Page ' . $listing_split->current_page_number . ' of ' . $listing_split->number_of_pages; ?></div>
<br class="clearBoth" />