Page 1 of 1

[solved] Listit2 search for acivated checkboxes problem

Posted: Thu Oct 10, 2013 12:49 pm
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

Re: Listit2 search for acivated checkboxes problem

Posted: Thu Oct 10, 2013 11:22 pm
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?

Re: Listit2 search for acivated checkboxes problem

Posted: Tue Oct 15, 2013 6:15 pm
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

Re: Listit2 search for acivated checkboxes problem

Posted: Thu Oct 17, 2013 7:06 pm
by Rolf
[solved] ?