Printing the modified and published dates ini a article list ..

Author Message

Jørgen Skogstad

Friday 02 May 2003 3:33:28 pm

I have to print the article modified or published date in a list. I have no clue how I can get this to work.

This prints the intro
{attribute_view_gui attribute=$Child:item.object.data_map.intro}

I am doing something like this:

{let article=fetch(content,list,hash(parent_node_id,215,limit,30,depth,5,sort_by,array(published,false()),class_filter_type,include,class_filter_array,array(2))) }
{section name=Child loop=$article}
{attribute_view_gui attribute=$Child:item.object.data_map.intro} <<<<---- HERE I HAVE TO PRINT THE OBJECTS DATE!
{/section}
{/let}

How can I accomplish this? I have tried alot, but can't get it to work.

Would apriciate any input!

Kindest,
Jørgen Skogstad

Bård Farstad

Friday 09 May 2003 12:29:50 am

To get the modification and publishing time from an object in a list you can do something like this ( in e.g line_class_xx.tpl ).

Published at:
{$node.object.published|l10n(datetime)}
Last modified:
{$node.object.modified|l10n(datetime)}

If you just want the date you can do:
{$node.object.published|l10n(date)}

--bård

Documentation: http://ez.no/doc

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 18 2025 11:41:01
Script start
Timing: Jan 18 2025 11:41:01
Module start 'layout'
Timing: Jan 18 2025 11:41:01
Module start 'content'
Timing: Jan 18 2025 11:41:01
Module end 'content'
Timing: Jan 18 2025 11:41:01
Script end

Main resources:

Total runtime0.0182 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 589.3047152.6563
Module start 'layout' 0.00750.0033 741.960939.5078
Module start 'content' 0.01070.0055 781.468889.3984
Module end 'content' 0.01620.0020 870.867230.3047
Script end 0.0182  901.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.5619140.0002
Check MTime0.00116.0387140.0001
Mysql Total
Database connection0.002011.074310.0020
Mysqli_queries0.002714.863130.0009
Looping result0.00000.082510.0000
Template Total0.00168.710.0016
Template load0.00094.773610.0009
Template processing0.00073.932810.0007
Override
Cache load0.00063.361810.0006
General
dbfile0.00031.652880.0000
String conversion0.00000.047140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs