Hi all,

what about an option for choosing the autocomplete matching type, like in CCK? In CCK there are two options, "contains" and "starts with". (I had to modify batax.module:180 to obtain a "contains" option).

Bye,
aded

Comments

JoshW’s picture

how did you add the contains option?

Anonymous’s picture

I didn't add an option, I force the module to always search in "contains mode". You have to add two "%" in "LOWER", so the query at line 180 should be

"(...) LOWER('%%%s%%')"

Bye,
aded

PS: I'm still not so familiar with Drupal API, but I could write a patch in few days (I have to finish a job, now).

PPS: I apologize for my bad english. :-)

sharadaprasad’s picture

I would love 'contains' option with case ignored.

sdrycroft’s picture

Status: Active » Fixed

Added to 1.6

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.