Advanced search and selection datatype

Author Message

laurent le cadet

Tuesday 12 July 2005 7:49:26 am

Hi,

I'm actually using an override of the advanced search to perform search on a specific classe.

This classe contain a "Selection" datatype.

Is it possible to perform a search based on this <select> to list all the object (users) which had make the same choice in the list ?

Regards

Laurent

Mikael Johansson

Tuesday 12 July 2005 8:04:16 am

Set the following parameters to search for objects where attribute 266 in class 3 is "two".
SearchText=two
PhraseSearchText=
SearchContentClassID=3
SearchContentClassAttributeID=266
SelectClass=Update+attributes
SearchSectionID=-1
SearchDate=-1

This will list all objects that has made the selection "two" (my selection has two options, "one" or "two").

Mikael Johansson, Sweden

laurent le cadet

Tuesday 12 July 2005 9:09:24 am

Hi,

Thanks for the settings.

I tried also another "quick and dirty" way ;) :

<select name="SearchContentClassAttributeID">
<option value="256">Nom</option>
<option value="263">Promotion</option>
<option value="277">Ville</option>
<option value="278">Pays</option>
<option value="284">Secteur d'activité</option>
</select>
<br>
<br>

<label>Sélectionner un secteur d'activité</label><div class="labelbreak"></div>
<select name="PhraseSearchText" value="">
<option value="" >Secteurs d'activité</option>
<option value="Direction générale" >Direction générale</option>
<option value="....Direction d'entreprise" >....Direction d'entreprise</option>
<option value="....Adjoint conseil, conseil de direction" >....Adjoint conseil, conseil de direction</option>
<option value="Production" >Production</option>
....
</select>

The user has to select first :

<option value="284">Secteur d'activité</option> (means activity)

And then chose an activity in the other <select>

To make it nicer, I have to render a dynamic select.

Laurent

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 18 2025 19:21:10
Script start
Timing: Jan 18 2025 19:21:10
Module start 'layout'
Timing: Jan 18 2025 19:21:10
Module start 'content'
Timing: Jan 18 2025 19:21:11
Module end 'content'
Timing: Jan 18 2025 19:21:11
Script end

Main resources:

Total runtime0.6080 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1484152.6406
Module start 'layout' 0.00610.0031 741.789139.4766
Module start 'content' 0.00930.5973 781.2656533.2422
Module end 'content' 0.60660.0014 1,314.507812.1406
Script end 0.6080  1,326.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5147160.0002
Check MTime0.00130.2094160.0001
Mysql Total
Database connection0.00110.181910.0011
Mysqli_queries0.555891.4082570.0098
Looping result0.00050.0793550.0000
Template Total0.578195.120.2891
Template load0.00180.296220.0009
Template processing0.576394.781920.2881
Template load and register function0.00010.017810.0001
states
state_id_array0.00100.166110.0010
state_identifier_array0.00080.127020.0004
Override
Cache load0.00150.2425310.0000
Sytem overhead
Fetch class attribute can translate value0.00050.081620.0002
Fetch class attribute name0.00160.259740.0004
XML
Image XML parsing0.00050.078920.0002
class_abstraction
Instantiating content class attribute0.00000.002050.0000
General
dbfile0.00080.1253160.0000
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs