Display the content of a node

Author Message

Mickel Scofield

Wednesday 21 March 2007 3:04:26 am

hi everybody,
i have created a class "agenda" with 2 attributes ( title and description ), and i have instanciate this class in the content menu,
what i want is how to display the content of this object in a template ?

thanks in advance

luca maroni

Sunday 25 March 2007 8:34:52 am

Hi Mickel,
I show them in a template in this way:

{$node.object.data_map.title.content.output.output_text}
{$node.object.data_map.description.content.output.output_text}

I'm quite new with eZpublish and I don't know if it is the best way.
Bye bye
Luca

Sylvain Bannier

Monday 26 March 2007 1:25:23 am

Hi both,

You should rather use the "attribute_view_gui" function to display attributes.

http://www.smile.fr

Heath

Monday 26 March 2007 1:27:32 am

http://ezpedia.org/wiki/en/ez/attribute_view_gui

hth

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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

Main resources:

Total runtime0.8953 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.0313152.6250
Module start 'layout' 0.00630.0030 741.656339.4453
Module start 'content' 0.00930.8844 781.1016615.7188
Module end 'content' 0.89370.0015 1,396.820312.1641
Script end 0.8952  1,408.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3522160.0002
Check MTime0.00130.1439160.0001
Mysql Total
Database connection0.00140.150910.0014
Mysqli_queries0.836193.3888640.0131
Looping result0.00070.0833620.0000
Template Total0.855095.520.4275
Template load0.00190.214420.0010
Template processing0.853095.283120.4265
Template load and register function0.00020.024610.0002
states
state_id_array0.00160.179210.0016
state_identifier_array0.00250.276020.0012
Override
Cache load0.00160.1768230.0001
Sytem overhead
Fetch class attribute can translate value0.00150.171240.0004
Fetch class attribute name0.00250.277160.0004
XML
Image XML parsing0.00130.145140.0003
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00080.0941220.0000
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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs