In my template, variables are not set !?!

Author Message

Jack Skellington

Tuesday 18 December 2007 3:57:53 am

Hi,

I am perplexed in front of behavior of my template : I don't obtain any valuation of variables $object, $node, $edit_version, $edit_language...

This content
The ID of the node: {$node.node_id} <br />
The ID of the object encapsulated by the node: {$node.object.id} <br />
The name of the object: {$node.object.name} <br />
First time the object was published: {$node.object.published|l10n( shortdate )} <br />
ID : {$attribute.content.id} <br />
Reference : {$attribute.content.reference|wash( xhtml )} <br />
Nom : {$attribute.content.nom|wash( xhtml )} <br />
Prénom : {$attribute.content.prenom|wash( xhtml )} <br />

Print
The ID of the node:
The ID of the object encapsulated by the node:
The name of the object:
First time the object was published: 01/01/1970
ID :
Reference :
Nom :
Prénom :

In the admin managment site (content tab), my object exists, id and versions are known and shown...

Would I have forgotten anything?

thank for reply !

Merry Christmas !

Sebastiaan van der Vliet

Wednesday 19 December 2007 12:21:13 am

Hi Jack,

In which template are you displaying the variables, pagelayout or one of the override templates? Do you have caching (templatecache, templatecompile, viewcaching) enabled or disabled?

Kind regards,
Sebastiaan

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Jack Skellington

Wednesday 19 December 2007 2:19:11 am

Hi Sebastiaan,

All in all, I am developing a specific datatype inside my own extension. So, the templates are in the folder: extension/<my extension>/design/standard/templates/content/datatype/edit and view. This dataype is used by an attribute of a specific class.

And for my tests, I systematically clear the entire cache.

Thank you for helping me, I’m a ez beginner and it’s not so ez !

Merry Christmas !

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 06:26:41
Script start
Timing: Jan 19 2025 06:26:41
Module start 'layout'
Timing: Jan 19 2025 06:26:41
Module start 'content'
Timing: Jan 19 2025 06:26:43
Module end 'content'
Timing: Jan 19 2025 06:26:43
Script end

Main resources:

Total runtime1.1906 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.0059 590.4063152.6406
Module start 'layout' 0.00590.0026 743.046939.4609
Module start 'content' 0.00851.1806 782.5078547.4453
Module end 'content' 1.18900.0015 1,329.953112.4531
Script end 1.1906  1,342.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2617160.0002
Check MTime0.00130.1079160.0001
Mysql Total
Database connection0.00090.079510.0009
Mysqli_queries1.136895.4767570.0199
Looping result0.00050.0438550.0000
Template Total1.160997.520.5805
Template load0.00190.163320.0010
Template processing1.158997.340420.5795
Template load and register function0.00010.008910.0001
states
state_id_array0.00070.062710.0007
state_identifier_array0.00150.129420.0008
Override
Cache load0.00160.1372390.0000
Sytem overhead
Fetch class attribute can translate value0.00050.044420.0003
Fetch class attribute name0.00150.126950.0003
XML
Image XML parsing0.00260.216820.0013
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00300.2488230.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs