× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

Search by ID not by Name

  • Adeel
14 years 5 months ago #26 by Adeel
Search by ID not by Name was created by Adeel
I wants to search by ID how can i cahge it to do by s


Means it will only just search by ID not by name

Please Log in to join the conversation.

  • Rubbel
14 years 5 months ago #27 by Rubbel
Replied by Rubbel on topic Re:Search by ID not by Name

You want to search where?
The sitewide search (plugin) or the internal search (catalog-view)
For the catalog view you must change the model in
/components/com_joodb/model/ctalog.php
change line 88 and 90
$where[] .= " (a.".$this->_joobase->ftitle." LIKE '%".$search."%' ".
" OR a.".$this->_joobase->fcontent." LIKE '%".$search."%' ) ";
to
$where[] .= " (a.".$this->_joobase->fid." = '".$search."' ) ";




[Adeel 2009-11-06 23:24:30]:
I wants to search by ID how can i cahge it to do by s

Means it will only just search by ID not by name


Please Log in to join the conversation.

14 years 5 months ago #28 by
Replied by on topic Re:Search by ID not by Name
Nice work!
Can I search by ID and NAME?
What do I have to modify?
Thank's!

Please Log in to join the conversation.

  • Adeel
14 years 5 months ago #33 by Adeel
Replied by Adeel on topic Re:Search by ID not by Name
Thanks it works

Please Log in to join the conversation.

Moderators: Dirkjoest