Forums / Developer / Accessing related objects of another class

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

eZ debug

Timing: Jan 18 2025 20:47:50
Script start
Timing: Jan 18 2025 20:47:50
Module start 'content'
Timing: Jan 18 2025 20:47:51
Module end 'content'
Timing: Jan 18 2025 20:47:51
Script end

Main resources:

Total runtime0.9937 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.8438180.8125
Module start 'content' 0.00730.7801 768.6563578.2891
Module end 'content' 0.78740.2063 1,346.9453332.7422
Script end 0.9936  1,679.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.4923210.0002
Check MTime0.00170.1722210.0001
Mysql Total
Database connection0.00130.134610.0013
Mysqli_queries0.882688.81831960.0045
Looping result0.00210.21231940.0000
Template Total0.963096.920.4815
Template load0.00210.216120.0011
Template processing0.960896.688020.4804
Template load and register function0.00020.017810.0002
states
state_id_array0.00200.203010.0020
state_identifier_array0.00100.098420.0005
Override
Cache load0.00180.1790150.0001
Sytem overhead
Fetch class attribute can translate value0.00190.192340.0005
Fetch class attribute name0.00110.115150.0002
XML
Image XML parsing0.00610.611140.0015
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.03743.7666330.0011
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs