Problem with eZXML attributes in template

Author Message

Heiko Irrgang

Friday 01 April 2011 4:15:39 am

Hi,

i want to fetch a object and print out its body content rendered from within a template.

I found a number of ways to do this, currently my template looks like this:

{def $object=fetch( 'content', 'object', hash( 'object_id', $objectid ) )}
{if is_set( $object )}
{$object.name|wash}
{$object.data_map.body.content.output.output_text}
{/if}

i also tried attribute_view_gui same effect:

it crashes: Fatal error: Maximum function nesting level of '100' reached, aborting!

if i print out {$object.data_map.body.content} i get Object(eZXMLText), so the object seems right.

no log entries as far as i can see, any ideas?

André R.

Friday 01 April 2011 6:00:57 am

Does the object happen to be the same as current object so that you are in fact doing infinite recursion here in some form?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Heiko Irrgang

Friday 01 April 2011 6:35:11 am

no, i tried differend object ids from different parts of the content tree

Marko Žmak

Friday 01 April 2011 1:30:02 pm

Just a wild guess...

Have you maybe embeded the object (using OE insert object and full view) in it's own xml attribute?

It sounds like this could be it...

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Heiko Irrgang

Monday 04 April 2011 11:13:05 pm

No, these are custom classes with a xml block 'body' created with the admin interface

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 11:16:14
Script start
Timing: Jan 18 2025 11:16:14
Module start 'layout'
Timing: Jan 18 2025 11:16:14
Module start 'content'
Timing: Jan 18 2025 11:16:16
Module end 'content'
Timing: Jan 18 2025 11:16:16
Script end

Main resources:

Total runtime1.1890 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.0469152.6406
Module start 'layout' 0.00680.0042 740.687539.4844
Module start 'content' 0.01101.1766 780.1719602.2500
Module end 'content' 1.18760.0014 1,382.421912.1250
Script end 1.1890  1,394.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2954160.0002
Check MTime0.00130.1110160.0001
Mysql Total
Database connection0.00080.067510.0008
Mysqli_queries1.126594.7404650.0173
Looping result0.00090.0725630.0000
Template Total1.149296.620.5746
Template load0.00360.301620.0018
Template processing1.145696.343420.5728
Template load and register function0.00020.013010.0002
states
state_id_array0.00170.145210.0017
state_identifier_array0.00190.155920.0009
Override
Cache load0.00200.1646270.0001
Sytem overhead
Fetch class attribute can translate value0.00170.139130.0006
Fetch class attribute name0.00150.129370.0002
XML
Image XML parsing0.00130.105930.0004
class_abstraction
Instantiating content class attribute0.00000.001270.0000
General
dbfile0.00170.1412250.0001
String conversion0.00000.000940.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs