which function to pass data to template in ezdatatype ?!

Author Message

Selmah Maxim

Sunday 13 November 2005 9:58:21 am

Am creating new datatype,and I need to pass some data to the template file !

How that please !

Selmah Maxim

Monday 21 November 2005 4:36:29 pm

I wanna to get some data from db and show it while editing, as select option !

can I "objectAttributeContent( &$contentObjectAttribute )" !?

Thanks

Gurudutt Verma

Tuesday 22 November 2005 1:01:13 am

Hi!
Hi Selmah

yes you are right use this to solve your purpose.

function &objectAttributeContent( &$contentObjectAttribute )
{
 ....
 .....
return xyz;
}

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

Main resources:

Total runtime0.7506 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.0063 589.3828152.6406
Module start 'layout' 0.00630.0041 742.023439.4766
Module start 'content' 0.01050.7387 781.5000500.0938
Module end 'content' 0.74920.0014 1,281.59388.1094
Script end 0.7506  1,289.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4817160.0002
Check MTime0.00130.1786160.0001
Mysql Total
Database connection0.00090.119510.0009
Mysqli_queries0.694392.4951570.0122
Looping result0.00070.0888550.0000
Template Total0.708494.420.3542
Template load0.00240.315820.0012
Template processing0.706094.054920.3530
Template load and register function0.00020.021410.0002
states
state_id_array0.00090.123110.0009
state_identifier_array0.00110.141620.0005
Override
Cache load0.00200.2639150.0001
Sytem overhead
Fetch class attribute can translate value0.00080.110920.0004
Fetch class attribute name0.00110.149240.0003
XML
Image XML parsing0.00170.231020.0009
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00180.2414160.0001
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
3content/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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs