Accessing related objects of another class

Author Message

Markus Bader

Friday 26 January 2007 12:59:49 am

Hello everyone!

I have some downloads (files) as related objects of the product class. Now I want to build a download area in which all these files are listed. Can anyone of you tell me how I can fetch the related objects of another object/class? Thank you very much.

Markus Bader

Nicolas Lescure

Friday 26 January 2007 5:18:22 am

You should check that : http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/related_objects

Felix Woldt

Wednesday 31 January 2007 4:23:19 am

hi,

if you you need some more filter e.g. sort_by ... you have to use an extension e.g. http://ez.no/community/contribs/template_plugins/objectrelationfilter__1

only if you use ez <= 3.8

i think in ez 3.9 their is already a objectrelationfilter in a fetch( 'content', 'list', hash(...)) available

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

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 31 2025 06:28:43
Script start
Timing: Jan 31 2025 06:28:43
Module start 'layout'
Timing: Jan 31 2025 06:28:43
Module start 'content'
Timing: Jan 31 2025 06:28:43
Module end 'content'
Timing: Jan 31 2025 06:28:43
Script end

Main resources:

Total runtime0.0139 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.0047 588.2656151.2266
Module start 'layout' 0.00470.0021 739.492236.6797
Module start 'content' 0.00680.0058 776.171990.0938
Module end 'content' 0.01260.0013 866.265633.9922
Script end 0.0138  900.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.2303140.0002
Check MTime0.00106.9016140.0001
Mysql Total
Database connection0.00064.484710.0006
Mysqli_queries0.002014.643730.0007
Looping result0.00000.072210.0000
Template Total0.00107.010.0010
Template load0.00085.536710.0008
Template processing0.00021.464510.0002
Override
Cache load0.00053.828110.0005
General
dbfile0.001510.929180.0002
String conversion0.00000.043040.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