Object Attributes in Templates

Author Message

h8 me

Friday 06 May 2005 4:14:32 am

Hallo,

i have a problem:

i need to store an object attribute into an template variable. i'm fetching a list of objects and than i tried sth like :
let id = $:item.object.data_map.id
but it doesn't work. with attribute_view_gui attribute=$:item.... i can see the variable, but not save it !?!?

THX

Ɓukasz Serwatka

Friday 06 May 2005 7:33:03 am

Hi,

What datatype is id? If integer try use $:item.object.data_map.id.data_int

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 01:05:28
Script start
Timing: Jan 19 2025 01:05:28
Module start 'layout'
Timing: Jan 19 2025 01:05:28
Module start 'content'
Timing: Jan 19 2025 01:05:29
Module end 'content'
Timing: Jan 19 2025 01:05:29
Script end

Main resources:

Total runtime0.6285 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.0075 591.3203152.6250
Module start 'layout' 0.00750.0036 743.945339.4609
Module start 'content' 0.01110.6158 783.4063523.8203
Module end 'content' 0.62690.0016 1,307.22668.3203
Script end 0.6285  1,315.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5482160.0002
Check MTime0.00130.2063160.0001
Mysql Total
Database connection0.00110.175810.0011
Mysqli_queries0.574291.3617540.0106
Looping result0.00060.1019520.0000
Template Total0.583392.820.2917
Template load0.00210.337420.0011
Template processing0.581292.470620.2906
Template load and register function0.00030.054710.0003
states
state_id_array0.00130.208110.0013
state_identifier_array0.00210.329520.0010
Override
Cache load0.00160.2620130.0001
Sytem overhead
Fetch class attribute can translate value0.00070.116120.0004
Fetch class attribute name0.00120.188930.0004
XML
Image XML parsing0.00070.115520.0004
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00721.1382180.0004
String conversion0.00000.001640.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/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
1content/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs