View Single Post
  #4  
Old 02-21-2008, 07:03 PM
 
imimin imimin is offline
 

Senior Member
  
Join Date: Mar 2007
Posts: 195
 

Default Re: Dialog.tpl table in seperate TD with 100% width

FOR THE RECORD:

Kind of answered my own question:

To accomplish the task of increasing the width of the "products.tpl" table, the following commented out code from the "subcategories.tpl" file has to be moved to appropriate areas of a new table in the "home.tpl" file:

Code:
... <DIV align="right">{include file="main/search_sort_by.tpl" sort_fields=$sort_fields selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url="home.php?cat=`$cat`&"}</DIV> {/if} {* NOTE: The following commented out code was moved to relevent areas in the "home.tpl" file to modify the "products.tpl" file table width in a newly created table. *} {* {if $total_pages gt 2} <BR> { include file="customer/main/navigation.tpl" } {/if} <HR size="1" width="100%"> {include file="customer/main/products.tpl" products=$products} *} {/if} {* {if $products eq "" and $tmp eq "0"} {$lng.txt_no_products_in_cat} {/if} *} {/capture} {* {include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra="width=100%"} {if $products eq ""} {if $f_products ne ""} <P> {include file="customer/main/featured.tpl"} {/if} {/if} { include file="customer/main/navigation.tpl" } *}

As an example, move the above commented out code to "home.tpl" as follows:

Code:
... { include file="poweredby.tpl" } <BR> <IMG src="{$ImagesDir}/spacer.gif" width="150" height="1" border="0"> </TD> <TD width="6">&nbsp;</TD> </TR> </TABLE> <TABLE width="100%"> <TR> <TD> {if $total_pages gt 2} <BR> { include file="customer/main/navigation.tpl" } {/if} <HR size="1" width="100%"> {include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra="width=100%"} {include file="customer/main/products.tpl" products=$products} {if $products eq "" and $tmp eq "0"} {$lng.txt_no_products_in_cat} {/if} {include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra="width=100%"} {if $products eq ""} {if $f_products ne ""} <P> {include file="customer/main/featured.tpl"} {/if} {/if} { include file="customer/main/navigation.tpl" } </TD> </TR> </TABLE> { include file="rectangle_bottom.tpl" } </BODY> </HTML> {/if}

This will increase the width of the "products.tpl" file to 100% of the viewing area.
__________________
Demoing v4.4.2 for new site
Licensed v4.0.19
Reply With Quote