Need to find out how to hard code a node

Author Message

Jared Gilpin

Wednesday 04 February 2004 11:16:53 pm

I've put a template inside a template. So i need to input only one field from one article in a new class that i have made. I need to find out how to do the following:

node.object.attribute

so that it will pull the specific attribute from the node and display it on my page.
please help

Nathaniel Fitzgerald-Hood

Wednesday 04 February 2004 11:47:34 pm

This is a pretty common thing you'll do thoughout the site. You need to use the attribute_view_gui function. Pass it the node's attribute you want to render and it looks after the rest:

{attribute_view_gui attribute=$node.object.attribute}

This page has a list of similar functions : http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/functions/function_list
under the heading "eZ publish kernel functions"

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 00:24:31
Script start
Timing: Jan 19 2025 00:24:31
Module start 'layout'
Timing: Jan 19 2025 00:24:31
Module start 'content'
Timing: Jan 19 2025 00:24:32
Module end 'content'
Timing: Jan 19 2025 00:24:32
Script end

Main resources:

Total runtime1.3842 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.0061 588.0469152.6406
Module start 'layout' 0.00610.0027 740.687539.4766
Module start 'content' 0.00871.3739 780.1641458.7266
Module end 'content' 1.38270.0015 1,238.89068.1250
Script end 1.3841  1,247.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2629160.0002
Check MTime0.00130.0940160.0001
Mysql Total
Database connection0.00070.050310.0007
Mysqli_queries1.343497.0543540.0249
Looping result0.00070.0509520.0000
Template Total1.351297.620.6756
Template load0.00290.213120.0015
Template processing1.348297.402820.6741
Template load and register function0.00020.012010.0002
states
state_id_array0.00150.108910.0015
state_identifier_array0.00210.152020.0011
Override
Cache load0.00220.1588120.0002
Sytem overhead
Fetch class attribute can translate value0.00110.080020.0006
Fetch class attribute name0.00100.069020.0005
XML
Image XML parsing0.00020.014220.0001
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00090.0636100.0001
String conversion0.00000.000540.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs