Using attribute(show) sometimes fails

Author Message

Paul Forsyth

Friday 16 May 2003 9:38:33 am

Sometimes I find that using attribute(show) doesn't show me the attributes of a particular field. Today this occured with an enum.

I want to query the attributes of a class and issued a fetch to retreive the class_attribute_list for my class.

Issuing the command (where 6 is the enum class attribute id):

{$my_attribute_array[6]|attribute(show)} produces the attributes' attributes as expected.

{$my_attribute_array[6].content|attribute(show)} doesn't show anything, but:

{$my_attribute_array[6].content.enum_list|attribute(show)} has the list of elements that i want to see and query.

Only by looking through code did i find out about 'enum_list'.

Is there a reason why the 'content' look up failed?

Paul

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

Main resources:

Total runtime0.9210 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9375152.6250
Module start 'layout' 0.00610.0031 740.562539.4453
Module start 'content' 0.00920.9104 780.0078399.6172
Module end 'content' 0.91960.0013 1,179.62508.1563
Script end 0.9209  1,187.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3837160.0002
Check MTime0.00140.1528160.0001
Mysql Total
Database connection0.00100.113310.0010
Mysqli_queries0.876095.1122460.0190
Looping result0.00150.1601440.0000
Template Total0.882095.820.4410
Template load0.00230.249920.0012
Template processing0.879795.514420.4398
Template load and register function0.00040.046710.0004
states
state_id_array0.00140.155310.0014
state_identifier_array0.00150.160420.0007
Override
Cache load0.00190.2041120.0002
Sytem overhead
Fetch class attribute can translate value0.00060.063710.0006
Fetch class attribute name0.00120.131710.0012
XML
Image XML parsing0.00010.012010.0001
class_abstraction
Instantiating content class attribute0.00000.001110.0000
General
dbfile0.00070.0808100.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs