[solved] Listit2 search for acivated checkboxes problem

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
faglork

[solved] Listit2 search for acivated checkboxes problem

Post by faglork »

Hi!

I use listit2 1.4 / cmsms 1.11.9

In listit2, I have several checkboxes. How do I search for them?
Checked boxes have a value of 1, so I tried this:

According to the module help,
"(optional) serach_*="" - Search a particular field. You can use 'title' or the alias of a field definition, e.g. search_title. Can be combined with fulltext search. Multiple search_* params can be combined."

but

ListIt2mymodule search_mycustomfield="1"

puts out nothing.

Any ideas?

Regards,
Alex
Last edited by faglork on Thu Oct 17, 2013 10:53 pm, edited 1 time in total.
Stikki

Re: Listit2 search for acivated checkboxes problem

Post by Stikki »

Howdy,

Checkbox can have only value of true/false, in this case 0/1.

At least my test result gave correct results with:

{ListIt2TESTIMP search_online=1}

Where "online" is field alias. Even with double quotes it worked. So maybe your other criteras fail?
faglork

Re: Listit2 search for acivated checkboxes problem

Post by faglork »

Thanks for checking. You are right, it works.
I mis-constructed an if-clause http://forum.cmsmadesimple.org/images/i ... edface.gif

Thanks again,
Alex
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Listit2 search for acivated checkboxes problem

Post by Rolf »

[solved] ?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “Modules/Add-Ons”