If you'd like to see what attributes is available for your item, you could try {$:item|attribute(show)}, or {$:item.data_map|attribute(show)}.
I suppose "data_di_pubblicazione" is the publication date of your article. I think you can access this directly with {$:item.object.published|datetime(custom, '%d.%m.%y - %H:%i:%s')} without having it as an own attribute to your class.
>If you'd like to see what attributes is available for your item, you could try {$:item|attribute(show)}, or {$:item.data_map|attribute(show)}.
No i know they.I have diffuculties with print it in templates
> I suppose "data_di_pubblicazione" is the publication date of your article. I think you can access this directly with {$:item.object.published|datetime(custom, '%d.%m.%y - %H:%i:%s')} without having it as an own attribute to your class. Oh very useful... but if i want modify date?
Here's some more on usage of date/datetime: http://ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/operators/miscellaneous
Here's some more on usage of date/datetime: http://ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/operators/miscellaneous
Ok thanks for your useful help. Now it works... but if i want display data in comunicato.tpl?(not data_di_pubblicazione but the data when object was published)
This is my template
<h1>Comunicati</h1>
<h2>{attribute_view_gui attribute=$node.object.data_map.titolo}</h2>
<div class="comunicato-data"><span>Pubblicato il:</span> HERE I WANT DATE</div>
{attribute_view_gui attribute=$node.object.data_map.lead_in} {attribute_view_gui attribute=$node.object.data_map.body}