Building search function on fields based on object relation

Author Message

Nabil Alimi

Monday 13 June 2005 10:01:09 am

Hi,

I created a class "formation" with two objectrelation fields. They are filled with the content of my "type" and "location" folder.
I checked the page source while editing a "formation" and it seems that the values of <option>S of the <select... name="type"> do not match with the node_id of the type content in my type folder.

How can I build a search function with a dropdown box filled with occurences of my type class in the tpye folder ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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 21:13:05
Script start
Timing: Jan 18 2025 21:13:05
Module start 'layout'
Timing: Jan 18 2025 21:13:05
Module start 'content'
Timing: Jan 18 2025 21:13:06
Module end 'content'
Timing: Jan 18 2025 21:13:06
Script end

Main resources:

Total runtime1.0567 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1719152.6563
Module start 'layout' 0.00480.0032 740.828139.5078
Module start 'content' 0.00791.0472 780.3359468.0156
Module end 'content' 1.05510.0015 1,248.35168.0938
Script end 1.0567  1,256.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3208160.0002
Check MTime0.00140.1348160.0001
Mysql Total
Database connection0.00060.053510.0006
Mysqli_queries1.016396.1737460.0221
Looping result0.00050.0438440.0000
Template Total1.021096.620.5105
Template load0.00190.183120.0010
Template processing1.019196.440320.5095
Template load and register function0.00010.011410.0001
states
state_id_array0.00150.137510.0015
state_identifier_array0.00230.221920.0012
Override
Cache load0.00160.148980.0002
Sytem overhead
Fetch class attribute can translate value0.00110.100110.0011
Fetch class attribute name0.00080.076620.0004
XML
Image XML parsing0.00060.055310.0006
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00120.1115160.0001
String conversion0.00000.001040.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs