Object Name Pattern

Author Message

Daniel Hubbell

Sunday 28 March 2004 8:21:07 pm

How can I display a formatted date in the Object Name Pattern? When I use the attributr identifer for a Date datatype it displays the date serial number. I would like it to display a formatted date. Can this be done?

Dan Hubbell
Gobles Public schools

Balazs Halasy

Sunday 28 March 2004 10:57:51 pm

Hi,

I don't think that it is possible to format the date in order to make it appear nicer in this particular case. The number you're looking at is not a serial number, it is most probably the UNIX timestamp of the date+time that was stored.

Balazs

Josh Sowin

Tuesday 30 March 2004 9:33:20 am

This is really frustrating. This should be possible... it is completely useless in UNIX timestamp. Can this be built into ezPublish somehow?

Peter Schnuerer

Wednesday 21 April 2004 8:59:46 am

I got the same problem.
I do need a date attribute in the object name. but in yyyy.mm.dd format - a timestamp is absolutly useless for me!

I think the object name ist just string, that is created wehen stroring the new article. So it must be quite easy to change the storing-format! but where can I do this????

thanks!
peter

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:58:27
Script start
Timing: Jan 19 2025 00:58:27
Module start 'layout'
Timing: Jan 19 2025 00:58:27
Module start 'content'
Timing: Jan 19 2025 00:58:28
Module end 'content'
Timing: Jan 19 2025 00:58:28
Script end

Main resources:

Total runtime0.8062 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00010.0051 591.1250152.6250
Module start 'layout' 0.00520.0032 743.750039.4297
Module start 'content' 0.00840.7963 783.1797586.6406
Module end 'content' 0.80470.0015 1,369.820312.5000
Script end 0.8062  1,382.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3738160.0002
Check MTime0.00130.1610160.0001
Mysql Total
Database connection0.00080.101010.0008
Mysqli_queries0.746892.6345640.0117
Looping result0.00070.0836620.0000
Template Total0.776896.420.3884
Template load0.00200.243020.0010
Template processing0.774896.107320.3874
Template load and register function0.00020.028410.0002
states
state_id_array0.00090.114510.0009
state_identifier_array0.00140.179020.0007
Override
Cache load0.00170.2068200.0001
Sytem overhead
Fetch class attribute can translate value0.00040.054540.0001
Fetch class attribute name0.00120.151960.0002
XML
Image XML parsing0.00260.320840.0006
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00230.2841220.0001
String conversion0.00000.001140.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
4content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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