X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Relocated search.tpl inside menu.tpl (https://forum.x-cart.com/showthread.php?t=63805)

AMMoyer 05-31-2012 08:32 AM

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} *}


cherie 05-31-2012 12:17 PM

Re: Relocated search.tpl inside menu.tpl
 
This part doesn't look right:

menu_title=$lng.lbl_part_number_search=$smarty.cap ture.menu

AMMoyer 06-01-2012 09:11 AM

Re: Relocated search.tpl inside menu.tpl
 
That was an issue as you pointed out. I couldn't get it to work quite right with menu.tpl and ended up using menu_dialog.tpl instead. Not exactly the end result I was wanting, but must move on at this point.


All times are GMT -8. The time now is 01:07 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.