Hello all, how can i remove the words "type:page,productpage" from my search results (appears in the input area neer the keyword), here is a link to my website: www.petrolbags.biz
thanks,

Comments

agarwal.sudhanshu’s picture

Override phptemplate_preprocess_search_result function in your theme's template.php

1.) Take the original code from http://api.drupal.org/api/function/template_preprocess_search_result/6
2.) Copy it in template.php and rename it to
yourThemeName_preprocess_search_result

Also, comment the following lines from that function:

 /*
  if (!empty($result['type'])) {
    $info['type'] = check_plain($result['type']);
  }
*/
ziginet’s picture

i followed the instruction without any change... if i'm typing keyword from the Header input area i recieving the keyword + "type:page,productpage" and if i'm typing from the search page i recieving just the keyword i typed.
again, here is the website: www.petrolbags.biz

thanks,

marthinal’s picture

Thanks for the info works perfectly for me !!

The only source of knowledge is experience. ~ Albert Einstein.

ziginet’s picture

i followed the instruction without any change... if i'm typing keyword from the Header input area i recieving the keyword + "type:page,productpage" and if i'm typing from the search page i recieving just the keyword i typed.
again, here is the website: www.petrolbags.biz

thanks,

Jeff Burnz’s picture

Maybe you are using some module to restrict the search? That's not normal Drupal, must be something form contrib going on there.