View Single Post
  #17  
Old 01-30-2007, 06:22 PM
 
firelight firelight is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 43
 

Default Re: Show All Products in Catagory

Hi,

This is what I did to make it work for my 4.0.19 version.
I will do more testing but it I'm just too tired right now.

With my non-programmer experience, I just placed the code to make the link "show all" show up in a different spot.

1) I modified my config.php as specified above.

2) This is my complete navigation.tpl file:

Code:
{* $Id: navigation.tpl,v 1.14 2004/06/24 13:09:51 max Exp $ *} {if $total_pages gt 2} <TABLE cellpadding="0" border="0"> <TR height="14"> <TD nowrap>{$lng.lbl_result_pages}:&nbsp;&nbsp;</TD> {if $current_super_page gt 1} <TD><A href="{$navigation_script}&page={math equation="page-1" page=$start_page}"><IMG src="{$ImagesDir}/larrow_2.gif" width="9" height="9" border="0" alt="{$lng.lbl_prev_group_pages}"></A></TD> {/if} {section name=page loop=$total_pages start=$start_page} {if %page.first%} {if $navigation_page gt 1} <TD valign="middle"><A href="{$navigation_script}&page={math equation="page-1" page=$navigation_page}"><IMG src="{$ImagesDir}/larrow.gif" width="9" height="9" border="0" alt="{$lng.lbl_prev_page}"></A>&nbsp;</TD> {/if} {/if} {if %page.index% eq $navigation_page} <TD align="center" title="{$lng.lbl_current_page}: #{%page.index%}"> <B>{%page.index%}</B> </TD> {else} {if %page.index% ge 100} {assign var="cell_width" value="23"} {assign var="suffix" value="_wide"} {else} {assign var="cell_width" value="17"} {assign var="suffix" value=""} {/if} <TD width="{$cell_width}" background="{$ImagesDir}/page{$suffix}.gif" align="center" valign="bottom"><A href="{$navigation_script}&page={%page.index%}" style="text-decoration: none" title="{$lng.lbl_page} #{%page.index%}">{%page.index%}</A><IMG src="{$ImagesDir}/spacer.gif" width="{$cell_width}" height="1" border="0"></TD> {/if} {if %page.last%} {math equation="pages-1" pages=$total_pages assign="total_pages_minus"} {if $navigation_page lt $total_super_pages*$config.Appearance.max_nav_pages} <TD valign="middle">&nbsp;<A href="{$navigation_script}&page={math equation="page+1" page=$navigation_page}"><IMG src="{$ImagesDir}/rarrow.gif" width="9" height="9" border="0" alt="{$lng.lbl_next_page}"></A></TD> {** View All Add on **} {if $smarty.server.PHP_SELF ne '/manufacturers.php' && $smarty.server.PHP_SELF ne '/admin/orders.php' && $smarty.server.PHP_SELF ne '/orders.php' } <td><a href="{$navigation_script}&amp;show=all">View All</a></td> {/if} {** End View All**} {/if} {/if} {/section} {if $current_super_page lt $total_super_pages} <TD><A href="{$navigation_script}&page={math equation="page+1" page=$total_pages_minus}"><IMG src="{$ImagesDir}/rarrow_2.gif" width="9" height="9" border="0" alt="{$lng.lbl_next_group_pages}"></A></TD> {/if} </TR></TABLE> <P> {/if}

I hope this helps.
Reply With Quote