section show with object relation list

Author Message

Helle Andersen

Friday 23 September 2005 7:21:39 am

What is the code for a section show with an object relation list:

I have tried all the ordinary ones I myself listed in http://ez.no/products/ez_publish_cms/documentation/development/libraries/ez_template/functions/section/how_to_use_section_show_with_different_datatypes

Any suggestions ?

Could someone in eZ please add to my list all the other datatypes and what kind of section show works?

Helle Damgaard

Kristof Coomans

Sunday 25 September 2005 11:20:21 pm

{section show=$node.object.data_map.xxx.content.relation_list|count|gt( 0 )}
{attribute_view_gui attribute=$node.object.data_map.xxx}
{/section}

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Helle Andersen

Monday 26 September 2005 4:11:56 am

Thanks - works fine. Please close
Helle

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 11:55:45
Script start
Timing: Jan 19 2025 11:55:45
Module start 'layout'
Timing: Jan 19 2025 11:55:45
Module start 'content'
Timing: Jan 19 2025 11:55:46
Module end 'content'
Timing: Jan 19 2025 11:55:46
Script end

Main resources:

Total runtime1.3651 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.2734152.6406
Module start 'layout' 0.00610.0041 741.914139.4609
Module start 'content' 0.01021.3534 781.3750529.6953
Module end 'content' 1.36360.0015 1,311.07038.1563
Script end 1.3651  1,319.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2466160.0002
Check MTime0.00130.0938160.0001
Mysql Total
Database connection0.00090.063210.0009
Mysqli_queries1.318096.5506570.0231
Looping result0.00050.0356550.0000
Template Total1.327297.220.6636
Template load0.00270.200820.0014
Template processing1.324497.020420.6622
Template load and register function0.00020.013010.0002
states
state_id_array0.00100.076610.0010
state_identifier_array0.00290.211120.0014
Override
Cache load0.00220.1575140.0002
Sytem overhead
Fetch class attribute can translate value0.00070.047720.0003
Fetch class attribute name0.00090.068640.0002
XML
Image XML parsing0.00070.053320.0004
class_abstraction
Instantiating content class attribute0.00000.000440.0000
General
dbfile0.00260.1906160.0002
String conversion0.00000.000740.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
3content/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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 7

Time used to render debug report: 0.0001 secs