Author Topic

Jan Borsodi

Saturday 26 July 2003 4:05:39 am

Comment12988

The output of the date datatype is controlled by the template content/datatype/view/ezdate.tpl (in design/standard/templates). Copy it to your own design and change the contents.
Example code:

{section show=$attribute.content.is_valid}{$attribute.content.timestamp|datetime(custom,"%d %m %Y")}{/section}

Also to clear up some misunderstandings in your code.
The expression $Child:item.data_map.data will return an object of the type eZContentObjectAttribute and cannot be converted directly to a date string. The datetime (or l10n(date) ) operator will only work on timestamps which are simple integers (number).
And also the ; (semicolon) after your string will probably make the template parser complain.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq