Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:53:34 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155556 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Search Box Destination  (Read 198 times)
MAC

Offline Offline

Posts: 3


« on: February 05, 2012, 08:36:04 PM »

Dear WebBaker Helpers,

I appreciate if can help me in this basic question

I am new to WB and I have designed my own template, I include the search on the top of my header.

I have added in my a standard search box

Code:
<?php
// CODE FOR FRONTEND SEARCH
if (SHOW_SEARCH) { ?>


<form name="search" action="<?php echo WB_URL?>/search/index.php" method="get">
      <input type="hidden" name="referrer" value="<?php echo defined('REFERRER_ID') ? REFERRER_ID PAGE_ID?>" />
      <td width="120">
        <input type="text" name="string" class="inp" size="11" value="">
      </td>
      <td width="51">

        <input type="image" name="wb_search" id="wb_search" value="<?php echo $TEXT['SEARCH']; ?>" src="<?php echo TEMPLATE_DIR;?>/images/btn_search.gif" alt="search" border="0" />

      </td>
      <td width="10" align="right"><img src="<?php echo TEMPLATE_DIR;?>/images/tbl1_r.gif" width="10" height="42"></td>
    </tr>
</form>

<?php
?>

IT all work fine but:

My problem is that the search results always goes to the WB template and not in my template I  use.

Can someone please help to see how I can forward the results to my template page.

Also how one can modify the HTML feel and look of the search results - where is the template code for this.

thanks a lot for your help in the above.   undecided undecided undecided

Kind Reagards

MAC
[EDIT - kweitzel]Please use the # butten to mark code! Thanks[/EDIT]
« Last Edit: February 05, 2012, 08:44:51 PM by kweitzel » Logged
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2298



WWW
« Reply #1 on: February 05, 2012, 09:55:23 PM »

This is all done on the settings page (click andvanced settings).

The help pages will give a good explanation of all settings.
http://www.websitebaker2.org/en/help/user-guide/working-with-wb/settings/search-settings.php
Logged

Professional WebsiteBaker Solutions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!