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.