Don't get the publish date and the modifier.

Author Message

Thomas Schamm

Monday 06 October 2003 5:16:38 pm

Hi,
again me ;-) and I have another question:

I want to publish news with the standard ezp class 'article'. I want to show in my usertemplate who has created this article and when it was published.

I thought that this should be possible over the class attributes of article, but i can only access 5 (title, into, body, thumbnail, enable_comments). Is it possible over some fetch('content','object',...)? I don't get it, i searched the function_definition.php, but even there i didn't find a hint. I think this is not a big step, but sometimes only thinking doesn't help much ;-)

Perhaps someone could help me :-)
Thanks, Thomas

Thomas Schamm

Tuesday 07 October 2003 1:45:28 pm

I think i've got it. I viewed the details using
{content_view_gui view=text_linked content_object=$content_object.owner}
and
{$content_object.published|l10n( datetime )}

Thx to everyone, who used time thinking about an answer here.
Greetz, Thomas

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

Main resources:

Total runtime0.7254 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2891152.6406
Module start 'layout' 0.00600.0045 741.929739.4766
Module start 'content' 0.01050.7134 781.4063426.7578
Module end 'content' 0.72400.0013 1,208.16418.1250
Script end 0.7253  1,216.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5017160.0002
Check MTime0.00150.2072160.0001
Mysql Total
Database connection0.00090.117710.0009
Mysqli_queries0.679093.6140520.0131
Looping result0.00070.0964500.0000
Template Total0.694295.720.3471
Template load0.00220.307820.0011
Template processing0.691995.388220.3460
Template load and register function0.00040.051610.0004
states
state_id_array0.00090.117410.0009
state_identifier_array0.00080.111720.0004
Override
Cache load0.00190.2561160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.124110.0009
Fetch class attribute name0.00180.244220.0009
XML
Image XML parsing0.00010.015110.0001
class_abstraction
Instantiating content class attribute0.00000.001320.0000
General
dbfile0.00080.1059100.0001
String conversion0.00000.001240.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs