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
[solved] Listit2 search for acivated checkboxes problem
-
faglork
[solved] Listit2 search for acivated checkboxes problem
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
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?
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
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
I mis-constructed an if-clause http://forum.cmsmadesimple.org/images/i ... edface.gif
Thanks again,
Alex
Re: Listit2 search for acivated checkboxes problem
[solved] ?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -


