View Single Post
  #1  
Old 05-31-2012, 08:32 AM
 
AMMoyer AMMoyer is offline
 

Senior Member
  
Join Date: Nov 2008
Posts: 150
 

Default Relocated search.tpl inside menu.tpl

I'm having an issue with my relocated search box. I've moved it to the left_bar and all is fine except when I try to use it within menu.tpl. I can either get the header from menu.tpl or the search box to show up depending on what I comment out. I've added height to the container it's in using CSS but that doesn't seem to work either.

Here's my search.tpl file with the menu.tpl/capture commented out so that the search box shows up. If I leave these lines active I only see the header.
Code:
{* {capture name=menu} *} <div class="search"> <div class="valign-middle"> <form method="post" action="search.php" name="productsearchform"> <input type="hidden" name="simple_search" value="Y" /> <input type="hidden" name="mode" value="search" /> <input type="hidden" name="posted_data[by_title]" value="Y" /> <input type="hidden" name="posted_data[by_descr]" value="Y" /> <input type="hidden" name="posted_data[by_sku]" value="Y" /> <input type="hidden" name="posted_data[search_in_subcategories]" value="Y" /> <input type="hidden" name="posted_data[including]" value="all" /> {strip} <a href="search.php" class="link"><img src="{$AltImagesDir}/vivid_dreams/advsearch.gif" alt="" /></a> <input type="text" name="posted_data[substring]" class="text" value="{$search_prefilled.substring|escape}" /> {include file="customer/buttons/button.tpl" type="input" style="image"} {/strip} </form> </div> </div> {* {/capture} {include file="menu.tpl" dingbats="rarrow.gif" menu_title=$lng.lbl_part_number_search=$smarty.capture.menu cellpadding=$fc_cellpadding} *}
__________________
Adam
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
CDSEO Pro
EWD Hosting
Reply With Quote