search by checkbox

Author Message

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>

K259

Marko Žmak

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?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 11:50:42
Script start
Timing: Jan 19 2025 11:50:42
Module start 'layout'
Timing: Jan 19 2025 11:50:42
Module start 'content'
Timing: Jan 19 2025 11:50:42
Module end 'content'
Timing: Jan 19 2025 11:50:42
Script end

Main resources:

Total runtime0.0131 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 590.2500152.6094
Module start 'layout' 0.00430.0025 742.859439.4141
Module start 'content' 0.00680.0044 782.273489.3047
Module end 'content' 0.01120.0019 871.578134.3047
Script end 0.0131  905.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002217.1511140.0002
Check MTime0.00107.8721140.0001
Mysql Total
Database connection0.00075.001710.0007
Mysqli_queries0.002216.772530.0007
Looping result0.00000.107410.0000
Template Total0.001611.910.0016
Template load0.00086.113810.0008
Template processing0.00085.742510.0008
Override
Cache load0.00064.421110.0006
General
dbfile0.00032.045880.0000
String conversion0.00000.052840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs