Forums / Setup & design / search by checkbox
Marko Žmak
Thursday 11 May 2006 7:32:37 am
I'm trying to implement advanced search where people could search for objects by a checkbox attribute. How do I do it?
I couldn't even do it in the adv. search in admin interface. I have set the searchable flag for that checkbox attribute, but when I try to search by it I don't get results. I tried typing 0 and 1 in SearchText box but no effect.
Is upose that I should create some other kind of form field to search by checkbox but I don't know what and how. Could someone help me on this?
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth
K259
Thursday 11 May 2006 2:32:36 pm
Maybe this get you on the right track ;)
<form action={"/content/advancedsearch/"|ezurl} method="get"> <input class="searchbox" type="text" size="8" name="SearchText" id="Search" value="" /> <input class="searchbutton" name="SearchButton" type="submit" value="Search" /> <input type="hidden" name="SearchContentClassID" value="14" /></form>
Thursday 11 May 2006 11:00:00 pm
Yes, I already know this, and I already did it. But I don't know how should the fields for searching by checkbox be named.
But from what I see here:
http://ez.no/products/ez_publish/documentation/customization/components/search/custom_search_box
it seems like search by checkbox cannot be done. Can someone confirm this?