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.