ezfind and objectrelations

Author Message

Lars Eirik R

Tuesday 05 October 2010 2:32:49 am

Hi.

We are currently using ezfind with textfields for searching content. We are currently looking at using a specific objectrelationslist for handling predefined tagging of content.

I have noticed that there is such a thing as custommapper in ezfind which should be abe to handle objectrealtions, but i am not sure how i can use this in a template fetch.

Is anyone able to provide me with an example of using a fetch where the values i search for should come from the objectrealtions list?

Lars Eirik R

Tuesday 05 October 2010 4:54:13 am

Managed to get this to work now. I basically concatenate the string with all values for the related objects and pass this to ezfind.

I guess this is pretty much the way it has to be done.

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 02:03:56
Script start
Timing: Jan 18 2025 02:03:56
Module start 'layout'
Timing: Jan 18 2025 02:03:56
Module start 'content'
Timing: Jan 18 2025 02:03:57
Module end 'content'
Timing: Jan 18 2025 02:03:57
Script end

Main resources:

Total runtime0.7625 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.0313152.6250
Module start 'layout' 0.00630.0041 741.656339.4531
Module start 'content' 0.01040.7505 781.1094458.5234
Module end 'content' 0.76100.0015 1,239.63288.1641
Script end 0.7624  1,247.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4649160.0002
Check MTime0.00130.1757160.0001
Mysql Total
Database connection0.00080.102210.0008
Mysqli_queries0.710893.2165520.0137
Looping result0.00060.0725500.0000
Template Total0.723794.920.3619
Template load0.00220.282120.0011
Template processing0.721694.631620.3608
Template load and register function0.00010.013610.0001
states
state_id_array0.00090.123810.0009
state_identifier_array0.00080.102220.0004
Override
Cache load0.00180.2319120.0001
Sytem overhead
Fetch class attribute can translate value0.00070.088110.0007
Fetch class attribute name0.00410.536130.0014
XML
Image XML parsing0.00050.067510.0005
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00420.5443160.0003
String conversion0.00000.001440.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
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs