Infobox behaviour modification

Author Message

Sander van den Akker

Friday 01 August 2008 7:07:10 am

Currently I'm working on a new project where I took the new website interface design as a starting point. By default this design displays child objects of the infobox class on the right side. I want to modify this behaviour but I'm not sure what is the best way to do so.

I would like to display all infoboxes in the current path, so not just the child infobox objects of the current node, but also child infobox objects of it's parent, and further ancestors.

Should I iterate through the $module_result.path variable and fetch infobox children for each element or is there a better way to accomplish this?

And, according to the documentation a content/list_count fetch does not support multiple parent_node_id's like a content/list fetch does. Is that correct?

Thanks for any help in advance!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Andrew Duck

Wednesday 17 September 2008 12:29:19 pm

Hi Sander,

You could iterate through and run multiple fetches as you have mentioned, another alternative is to start your fetch higher up the node tree and use the depth parameter to search deeper into the tree looking for infoboxes.

Each approach obviously has performance issues associated with it, especially as you increase the total number of objects in the tree, searching with depth starts to become hazardous.

If this happens to be the case then you would potentially look at writing a simple module fetch to run your own optimised sql fetch for the appropriate infoboxes. Although this may not be an issue, depending on the size of the node tree.

Regards,
Andrew.

Andrew Duck, Executive Director, Quiqcorp Limited
eZ Certified Developer and Trainer.
Member of the Community Project Board
http://quiqcorp.com | http://twitter.com/andrewduck

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

Main resources:

Total runtime0.8658 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 590.2891152.6250
Module start 'layout' 0.00620.0030 742.914139.4609
Module start 'content' 0.00920.8551 782.3750536.6563
Module end 'content' 0.86430.0015 1,319.031312.1641
Script end 0.8658  1,331.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4007160.0002
Check MTime0.00150.1771160.0001
Mysql Total
Database connection0.00070.077810.0007
Mysqli_queries0.814894.1061540.0151
Looping result0.00060.0678520.0000
Template Total0.831796.120.4158
Template load0.00200.233320.0010
Template processing0.829695.819420.4148
Template load and register function0.00010.015910.0001
states
state_id_array0.00100.117510.0010
state_identifier_array0.00090.107020.0005
Override
Cache load0.00160.1886170.0001
Sytem overhead
Fetch class attribute can translate value0.00130.146120.0006
Fetch class attribute name0.00130.155040.0003
XML
Image XML parsing0.00160.184720.0008
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00120.1442250.0000
String conversion0.00000.001240.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
3content/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs