Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Top-links/Bottom-links difference in tpl_modules_product_listing.php

    ZC v1.5.0, using the Developer's Tool Kit to look for where the split_pages_results function display_links is used, I noticed that there's a difference between the calling sequence between the top and bottom links (main_page is missing from the array for the bottom links):

    Code:
    //includes/templates/template_default/templates/tpl_modules_product_listing.php
    
    Line #26 : <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>
    
    Line #42 : <div id="productsListingListingBottomLinks" 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'))); ?></div>
    Which version is correct?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Top-links/Bottom-links difference in tpl_modules_product_listing.php

    The inclusion of 'main_page' is marginally more correct.
    I can't recall ever seeing anyone post about a problem related to it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Top-links/Bottom-links difference in tpl_modules_product_listing.php

    Thanks, DrByte. It just bothered my sense of symmetry ...

 

 

Similar Threads

  1. adding top link to prod listing bottom links
    By igofresh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Feb 2011, 01:52 AM
  2. Top and bottom nav links
    By mrsam999 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 24 Aug 2010, 12:47 AM
  3. How to remove top banner and add links to top?
    By Punkristo in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 8 Jun 2010, 07:21 PM
  4. Replies: 3
    Last Post: 22 May 2010, 11:41 PM
  5. Modify/Remove links at the top and bottom of page
    By tkelley66 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Aug 2008, 01:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg