I would like to restrict the operator of some exposed views filters to "contains" and "is one of" and remove the drop down menu selection in the filter and filterbox, but keep the ability to set the default operator in the admin/views interface.

Can anyone provide some quick tips on how to do this? Would the best place to start this be with the CSS or would it be necessary to tweak the module code?

Comments

trailerparkopera’s picture

duh...select "lock operators" in the admin/Views:Exposed filters section. Nice function! Kudos to the developers.

MohammadMoussa-Lebanon’s picture

hello every body ,im trying to make a website for sales, but im facing a problem which is , i have 3 categories apartments (for sale , for rent , to buy ) ,lands (for sale , for rent , to buy ) , buildings (for sale , for rent , to buy ) ,
all i want to do is to place 2 select boxes and let the user select in the first box if he want apartment wo land or building and in the second box for sale or for rent or to buy and click a button which create a query and show all in the same page, i mean all results must be in the same page,please help me im a new drupal user ,its a hard problem:S:S:
thanks alot

da_solver’s picture

Sorry, I couldn't figure out what your question is.

Perhaps you can post some of the code you are having a problem with. Please make sure you detail what each line is supposed to do, Please detail which line of code is working and which line is not.