Home arrow Forum

Remository Forum

 


aries

Karma: 0  
search on keywords - 2008/09/17 15:29 Hello !

i would like to mdify the search module to search on keywords instead of title or content.

How can i do this ?

Laurent
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 78  
Re:search on keywords - 2008/09/21 12:42 You'd need to modify the code of the search module to do that. Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
aries

Karma: 0  
Re:search on keywords - 2008/09/22 10:12 Hello,

since i don't know much about php, i imagine that i must change this :

function getItemID ($component_string) {
global $database;
if (isset($GLOBALS['remosef_itemids'][$component_string])) return $GLOBALS['remosef_itemids'][$component_string];
$database->setQuery("SELECT id, (CASE menutype WHEN 'mainmenu' THEN 1 WHEN 'topmenu' THEN 2 WHEN 'othermenu' THEN 3 ELSE 99 END) menorder"
." FROM #__menu WHERE link = 'index.php?option=$component_string' AND published=1 ORDER BY menorder");
$GLOBALS['remosef_itemids'][$component_string] = $database->loadResult();
return $GLOBALS['remosef_itemids'][$component_string];
}

But where can i set the search to the keymords, since i can't even find the title or content. As i said i'm terrible in php.

Laurent
  | | Sorry, you do not currently have permission to write here.

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Who is Online

Remository welcomes guests and visitors

We have 14 guest online